Skip to content

Instantly share code, notes, and snippets.

@PeteHaughie
PeteHaughie / gist:222134eb987b75692b58ea52e04835dc
Created September 7, 2025 10:41
TamperMonkey Script to Remove Shorts from YouTube Desktop
// ==UserScript==
// @name Remove YouTube Shorts
// @namespace http://tampermonkey.net/
// @version 2025-08-21
// @description Despite repeatedly telling YouTube I don't want to see Shorts in my feed it keeps shoving them down my throat
// @author Pete Haughie
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@PeteHaughie
PeteHaughie / gist:3468815fba32901c4730a22956f01908
Created August 21, 2025 09:09
Hide YouTube Shorts from feed
// ==UserScript==
// @name Remove YouTube Shorts
// @namespace http://tampermonkey.net/
// @version 2025-08-21
// @description Despite repeatedly telling YouTube I don't want to see Shorts in my feed it keeps shoving them down my throat
// @author Pete Haughie
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@PeteHaughie
PeteHaughie / gist:410c76c29ca113d0c0ba05488b01dd0f
Last active August 20, 2025 12:27
Disable Reddit Video Autoplay Tampermonkey Script
// ==UserScript==
// @name Disable Reddit Video Autoplay
// @namespace http://tampermonkey.net/
// @version 2025-08-20
// @description A simple script to disable the media autoplay on Reddit.com which they refuse to fix for desktop
// @author Pete Haughie
// @match https://www.reddit.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
@PeteHaughie
PeteHaughie / rpi_rotary_encoder.c
Created November 27, 2024 14:39 — forked from gustavorv86/rpi_rotary_encoder.c
Raspberry PI Rotary Encoder Function Example
/*
Wiring
01 3.3V DC POWER --------------- +
06 GROUND ---------------------- GND
11 GPIO17 (GPIO_GEN0) ---------- CLK
12 GPIO18 (GPIO_GEN1) ---------- DT
13 GPIO19 (GPIO_GEN2) ---------- SW
Compile:
@PeteHaughie
PeteHaughie / usbmount-headless.md
Created November 24, 2024 17:38 — forked from zebrajaeger/usbmount-headless.md
usbmount (also ntfs) for Raspberry PI 4b - Raspberry PI OS lite 32 (headless)

usbmount (also ntfs) for Raspberry PI 4b - Raspberry PI OS lite 32 (headless)

1. Install OS

Download and install "Raspberry Pi Imager" from https://www.raspberrypi.org/software/

Choose "Raspberry PI OS Lite 32" Press Ctrl+Shift+X

  • Maybe switch to save always