Skip to content

Instantly share code, notes, and snippets.

@darkxanter
Forked from screeny05/el_to_dnsmasq.sh
Created August 12, 2019 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkxanter/a8ffb989ce6ca0982ee500b0be9f101c to your computer and use it in GitHub Desktop.
Save darkxanter/a8ffb989ce6ca0982ee500b0be9f101c 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