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
import logging | |
import jwt | |
from urllib.parse import urlparse | |
import urllib.request | |
from collections import OrderedDict | |
from typing import Any, Dict, Optional, cast | |
import voluptuous as vol |
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/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 | |
# forked from: https://gist.github.com/chrisvella/5f3a18f1e442153cd685 | |
### Configuration ### | |
# Server to send ads to | |
adblock='0.0.0.0' |