Skip to content

Instantly share code, notes, and snippets.

@cdbattags
Created February 21, 2019 23:05
Show Gist options
  • Save cdbattags/ba8205a5f3eff55bba775b7d6101e675 to your computer and use it in GitHub Desktop.
Save cdbattags/ba8205a5f3eff55bba775b7d6101e675 to your computer and use it in GitHub Desktop.
blocklist for transmission
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| sed "s/\&/\&/g" \
| sed "s/http/\"http/g" \
| sed "s/gz/gz\"/g" \
| xargs curl -L \
| gunzip \
| egrep -v '^#' > ~/Library/Application\ Support/Transmission/blocklists/generated.txt.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment