Skip to content

Instantly share code, notes, and snippets.

@mrtaxi
mrtaxi / Confirmation of Amazon SNS Subscription with disabled `Unsubscribe` Link
Last active October 4, 2022 12:46 — forked from hide32767/confirm_sns_subs_with_disabled_unsubs_link.py
Confirmation of Amazon SNS Subscription with disabled `Unsubscribe` Link
@mrtaxi
mrtaxi / filter-youtube-domains.sh
Created May 11, 2018 21:40 — forked from ErikFontanel/filter-youtube-domains.sh
Pi-hole Youtube ad blocking
#!/bin/sh
# This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list.
# Run this script daily with a cron job (don't forget to chmod +x)
# More info here: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136
# File to store the YT ad domains
FILE=/etc/pihole/youtube.hosts
# Fetch the list of domains, remove the ip's and save them
curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \