Created
July 15, 2016 02:18
-
-
Save h2ero/a89d260c5092a6651e27339f41f3956b to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# add it in dnsmasq.conf | |
# conf-file=/tmp/adblock.conf | |
wget -O - http://adblock-chinalist.googlecode.com/svn/trunk/adblock-lazy.txt | grep -E "^\|\|[^\*]*\^$" | sed -e 's:||:address\=\/:' -e 's:\^:/127\.0\.0\.1:' > /tmp/adblock.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment