Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am 06chaynes on github.
* I am chaynes (https://keybase.io/chaynes) on keybase.
* I have a public key whose fingerprint is 7880 4543 F1FA 1890 DCBF 22F2 AA0C 33E9 6AD4 3346
To claim this, I am signing this object:
@06chaynes
06chaynes / make-mega-adblock-hostsfile.sh
Created September 12, 2016 14:05
Create Mega Adblock Hostsfile for use with Dnsmasq (Modified from Pi-hole)
#!/bin/bash
# Modified Pi-hole script to generate a generic hosts file
# for use with dnsmasq's addn-hosts configuration
# original : https://github.com/jacobsalmela/pi-hole/blob/master/gravity-adv.sh
# Address to send ads to. This could possibily be removed, but may be useful for debugging purposes?
destinationIP="0.0.0.0"
outlist='./final_blocklist.txt'
tempoutlist="$outlist.tmp"