Skip to content

Instantly share code, notes, and snippets.

View SpotifyWhitelist.sh
#!/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"
@captainhook
captainhook / SpotifyWhitelist
Last active May 24, 2023 14:44
Spotify whitelist, Pi-hole compatible. Original source: https://github.com/x0uid/SpotifyAdBlock
View SpotifyWhitelist
# Spotify's Anti-Adveritsing blocking servers, tricking services to stop music services (DONT BLOCK THESE!):
gcdn.2mdn.net
r9---sn-n4v7kn76.c.2mdn.net
gew1-accesspoint-b-zzfg.ap.spotify.com
ns1.p23.dynect.net
ns3.p23.dynect.net
ns4.p23.dynect.net
dns1.p07.nsone.net
dns2.p07.nsone.net
dns3.p07.nsone.net
@captainhook
captainhook / SpotifyBlocklist
Last active May 1, 2022 11:06
Spotify blocklist, Pi-hole compatible, original source: https://github.com/x0uid/SpotifyAdBlock
View SpotifyBlocklist
#Please use original: https://github.com/x0uid/SpotifyAdBlock/blob/master/hosts
#Pihole supports importing host file format to blacklist.
@captainhook
captainhook / building-copperhead-pixel_XL.md
Last active June 5, 2018 03:26 — forked from ramann/building-copperhead-pixel_XL.md
Building Copperhead OS for Pixel XL
View building-copperhead-pixel_XL.md

Notes for building Copperhead OS for the Pixel XL. This was done on Ubuntu 14.04.5 LTS, using GNU Make 3.81 (3.81-8.2ubuntu3) and Python 2.7.6 (2.7.6-8ubuntu0.2), as recommended on https://source.android.com/setup/requirements#software-requirements. All below instructions are specific to the Pixel XL (marlin) and come from https://copperhead.co/android/docs/building.

Install build dependencies

sudo apt-get update 
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip

sudo add-apt-repository ppa:git-core/ppa
View Install wkhtmltopdf on CentOS7
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
unxz wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar -xvf wkhtmltox-0.12.4_linux-generic-amd64.tar
mv wkhtmltox/bin/* /usr/local/bin/
rm -rf wkhtmltox
rm -f wkhtmltox-0.12.4_linux-generic-amd64.tar