Skip to content

Instantly share code, notes, and snippets.

View x0uid's full-sized avatar
🏠
Working from home

Anis Muslić x0uid

🏠
Working from home
View GitHub Profile
@captainhook
captainhook / SpotifyBlocklist
Last active May 1, 2022 11:06
Spotify blocklist, Pi-hole compatible, original source: https://github.com/x0uid/SpotifyAdBlock
#Please use original: https://github.com/x0uid/SpotifyAdBlock/blob/master/hosts
#Pihole supports importing host file format to blacklist.
#!/bin/bash
# This script will download and add the Spotify whitelist to your pihole
# Adapted from https://github.com/anudeepND/whitelist/blob/master/scripts/whitelist.sh
# Make sure you are pulling the latest raw of pi-hole compatible whitelist: https://gist.github.com/captainhook/9eb4132d6e58888e37c6bc6c73dd4e60
# This is INCOMPATIBLE WITH UPCOMING Pihole v5
#====================================================
TICK="[\e[32m ✔ \e[0m]"
PIHOLE_LOCATION="/etc/pihole"
GRAVITY_UPDATE_COMMAND="pihole -g"