dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 4f07e656c2a869c3a37ff0f0c33545c87a91873b
parent 42a2e553275721fc03ff2dc3035c9147aa16576f
Author: Chris Noxz <chris@noxz.tech>
Date:   Thu, 29 Aug 2019 10:35:39 +0200

[bin] add urls for gen-adblock, and fix some filtering

Diffstat:
Mbin/.bin/gen-adblock | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/.bin/gen-adblock b/bin/.bin/gen-adblock @@ -8,9 +8,14 @@ printf '%s' \ ' https://adaway.org/hosts.txt' \ ' http://adblock.mahakala.is/' \ ' http://hosts-file.net/.%5Cad_servers.txt' \ +' https://mirror1.malwaredomains.com/files/justdomains' \ ' http://pgl.yoyo.org/adservers/serverlist.php' \ '?mimetype=plaintext&hostformat=hosts' \ +' https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts' \ +' https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt' \ +' https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt' \ ' http://someonewhocares.org/hosts/hosts' \ +' http://sysctl.org/cameleon/hosts' \ ' http://winhelp2002.mvps.org/hosts.txt' \ ' http://www.malwaredomainlist.com/hostslist/hosts.txt' \ | sed -e 's/^$//g'); for x @@ -20,13 +25,14 @@ do | sed -e 's/\r//' \ | grep -v '#\|^::1\|[[:space:]]localhost$' \ | tr '\t' ' ' \ - | sed -e '/^ *$/d' -e 's/^[^\s]*\s//' \ + | sed -e '/^[\s]*$/d' -e 's/^[^\s]*\s//' \ | sort >> $_TEMP_FILE done cat $_TEMP_FILE \ | sort \ | uniq \ +| sed -e '/^[\s]*$/d' \ | awk -v "IP=0.0.0.0" '{print IP" "$0}' \ | sudo tee $_HOSTS_FILE > /dev/null