Skip to content

Instantly share code, notes, and snippets.

View enginefeeder101's full-sized avatar

Engine Feeder enginefeeder101

  • The Netherlands
View GitHub Profile
@enginefeeder101
enginefeeder101 / auth_provider.py
Last active January 1, 2023 22:37 — forked from sidoh/auth_provider.py
Custom HomeAssistant auth provider
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
@enginefeeder101
enginefeeder101 / make-mega-adblock-hostsfile.sh
Last active June 16, 2018 00:23
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
# forked from: https://gist.github.com/chrisvella/5f3a18f1e442153cd685
### Configuration ###
# Server to send ads to
adblock='0.0.0.0'