Skip to content

Instantly share code, notes, and snippets.

@tehmaspc
Forked from flowolf/getBlockLists.sh
Last active August 29, 2015 14:10
Show Gist options
  • Save tehmaspc/8a6c362a191f3b7ee14e to your computer and use it in GitHub Desktop.
Save tehmaspc/8a6c362a191f3b7ee14e to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Download lists, unpack and filter, write to gzipped file
curl -s https://www.iblocklist.com/lists.php \
| grep -A 2 Bluetack \
| sed -n "s/.*value='\(http:.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#' \
| gzip - > bt_blocklist.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment