Skip to content

Instantly share code, notes, and snippets.

@h2ero
Created July 15, 2016 02:18
Show Gist options
  • Save h2ero/a89d260c5092a6651e27339f41f3956b to your computer and use it in GitHub Desktop.
Save h2ero/a89d260c5092a6651e27339f41f3956b to your computer and use it in GitHub Desktop.
#!/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