Last active
January 30, 2022 00:30
-
-
Save glaszig/bf96beccf4694ae25d4f1f7cc6224985 to your computer and use it in GitHub Desktop.
Revisions
-
glaszig revised this gist
Mar 27, 2020 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,20 @@ #!/usr/bin/env sh # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # Version 2, December 2004 # # Copyright (C) 2020 glaszig <glaszig@gmail.com> # # Everyone is permitted to copy and distribute verbatim or modified # copies of this license document, and changing it is allowed as long # as the name is changed. # # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION # # 0. You just DO WHAT THE FUCK YOU WANT TO. # inspired by https://gist.github.com/johntyree/3331662#gistcomment-1968023 # # usage: -
glaszig revised this gist
Mar 27, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,8 @@ PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH" if [ -z "$UA" ]; then echo "User Agent environment variable UA missing." echo "See, e.g., https://user-agents.net/browsers for examples." exit 1 fi -
glaszig revised this gist
Mar 27, 2020 . 1 changed file with 7 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,12 +3,16 @@ # inspired by https://gist.github.com/johntyree/3331662#gistcomment-1968023 # # usage: # UA="user agent string" mkp2pblocklist > /tmp/blockp2p.list # or # UA="user agent string" mkp2pblocklist | gzip -9 > /tmp/blockp2p.list.gz PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH" if [ -z "$UA" ]; then echo "User Agent environment variable UA missing. Choose one from, e.g., https://user-agents.net/browsers" exit 1 fi curl -A "$UA" -s https://www.iblocklist.com/lists.php \ | sed -n "s/.*value='\(http:.*=p2p.*\)'.*/\1/p" \ -
glaszig revised this gist
Mar 27, 2020 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,10 +8,11 @@ # mkp2pblocklist | gzip -9 > /tmp/blockp2p.list.gz PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH" UA=${UA:-'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0'} curl -A "$UA" -s https://www.iblocklist.com/lists.php \ | sed -n "s/.*value='\(http:.*=p2p.*\)'.*/\1/p" \ | xargs curl -A "$UA" -sL \ | gunzip \ | egrep -v '^#' \ | uniq -
glaszig revised this gist
May 16, 2017 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -14,5 +14,4 @@ curl -s https://www.iblocklist.com/lists.php \ | xargs curl -sL \ | gunzip \ | egrep -v '^#' \ | uniq -
glaszig revised this gist
May 16, 2017 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,12 @@ # or # mkp2pblocklist | gzip -9 > /tmp/blockp2p.list.gz PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH" curl -s https://www.iblocklist.com/lists.php \ | sed -n "s/.*value='\(http:.*=p2p.*\)'.*/\1/p" \ | xargs curl -sL \ | gunzip \ | egrep -v '^#' \ | uniq \ | gzip -9 -
glaszig created this gist
Mar 23, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ #!/usr/bin/env sh # inspired by https://gist.github.com/johntyree/3331662#gistcomment-1968023 # # usage: # mkp2pblocklist > /tmp/blockp2p.list # or # mkp2pblocklist | gzip -9 > /tmp/blockp2p.list.gz curl -s https://www.iblocklist.com/lists.php \ | sed -n "s/.*value='\(http:.*=p2p.*\)'.*/\1/p" \ | xargs curl -sL \ | gunzip \ | egrep -v '^#'