Created
February 21, 2019 23:05
-
-
Save cdbattags/ba8205a5f3eff55bba775b7d6101e675 to your computer and use it in GitHub Desktop.
blocklist for transmission
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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