Skip to content

Instantly share code, notes, and snippets.

@screeny05
Created May 10, 2019 21:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save screeny05/3913a84a736fcab7c52cb62da242553f to your computer and use it in GitHub Desktop.
Save screeny05/3913a84a736fcab7c52cb62da242553f to your computer and use it in GitHub Desktop.
Easylist to Dnsmasq
wget -q -nv https://easylist-downloads.adblockplus.org/easylist.txt -O list
egrep '^\|\|([a-Z\.]+)\^$' list | cut -d '^' -f1 | sed 's#||#address=/# ; s#$#/127.0.0.1#' | sort | uniq > list.dnsmasq
rm list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment