Skip to content

Instantly share code, notes, and snippets.

@xbeta
Forked from johntyree/getBlockLists.sh
Created April 14, 2016 08:18
Show Gist options
  • Save xbeta/8c10c0a30ddf15c8f5858e5fbc41fb24 to your computer and use it in GitHub Desktop.
Save xbeta/8c10c0a30ddf15c8f5858e5fbc41fb24 to your computer and use it in GitHub Desktop.

Revisions

  1. @johntyree johntyree revised this gist Jan 28, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion getBlockLists.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/usr/bin/env sh

    # Download lists, unpack and filter, write to stdout
    curl -s http://www.iblocklist.com/lists.php \
    curl -s https://www.iblocklist.com/lists.php \
    | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
    | xargs wget -O - \
    | gunzip \
  2. @johntyree johntyree revised this gist Aug 12, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion getBlockLists.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/bin/sh
    #!/usr/bin/env sh

    # Download lists, unpack and filter, write to stdout
    curl -s http://www.iblocklist.com/lists.php \
  3. @johntyree johntyree revised this gist Aug 12, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions getBlockLists.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    #!/bin/sh

    # Download lists, unpack and filter, write to stdout
    curl -s http://www.iblocklist.com/lists.php \
    | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
    | xargs wget -O - \
  4. @johntyree johntyree revised this gist Aug 12, 2012. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions getBlockLists.sh
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,4 @@ curl -s http://www.iblocklist.com/lists.php \
    | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
    | xargs wget -O - \
    | gunzip \
    | egrep -v '^#' \
    >> biglist.p2p
    # for i in *gz; do j=${i##*list=}; j=${j%%\&*}; mv "$i" "$j".gz; done
    # zcat *.gz | egrep -v '^#' > biglist.p2p
    | egrep -v '^#'
  5. @johntyree johntyree created this gist Aug 12, 2012.
    10 changes: 10 additions & 0 deletions getBlockLists.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/sh

    curl -s http://www.iblocklist.com/lists.php \
    | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
    | xargs wget -O - \
    | gunzip \
    | egrep -v '^#' \
    >> biglist.p2p
    # for i in *gz; do j=${i##*list=}; j=${j%%\&*}; mv "$i" "$j".gz; done
    # zcat *.gz | egrep -v '^#' > biglist.p2p