Skip to content

Instantly share code, notes, and snippets.

View Ethorbit's full-sized avatar

Ethorbit Ethorbit

View GitHub Profile
@Ethorbit
Ethorbit / nix-dependency-tracking-example.txt
Last active August 30, 2025 00:50
Nix example showing how to track down dependents of pattern-matched packages, useful if you get unwanted packages and don't know why
# Find out what depends on *kwallet* packages
nix-store -qR /run/current-system | grep -i kwallet | xargs -I {} nix why-depends /run/current-system {}
@Ethorbit
Ethorbit / hide-youtube-thumbnails.txt
Created August 28, 2025 18:26
UBlock Origin filter to hide YT thumbnails, updated after latest garbage UI changes
! Aug 8, 2025
youtube.com##.ytThumbnailViewModelImage
youtube.com##.yt-lockup-view-model__content-image
@Ethorbit
Ethorbit / fix-for-mouse-lag-linux
Created May 15, 2025 08:02
Ultimate fix for FPS drop when moving mouse in Linux
You need to lower the mouse's POLLING RATE.
https://wiki.archlinux.org/title/Mouse_polling_rate
@Ethorbit
Ethorbit / gist:16b59e3ded0d190c7a424acede68073a
Created May 9, 2025 09:11
rename all .txt files to .md. Useful for copying files to the Obsidian note app
find . -iname "*.txt" -exec bash -c 'mv "$0" "${0%\.txt}.md"' {} \;
@Ethorbit
Ethorbit / hide-rumble-distractions.txt
Created May 7, 2025 21:48
UBlock Origin filters to remove distractions from Rumble
! May 7, 2025 https://rumble.com
rumble.com##.media-page-related-media-desktop-sidebar
rumble.com##.rumblers-vote-pill-button.rumbles-vote-pill-up
rumble.com##.rumblers-vote-pill-button.rumbles-vote-pill-down
rumble.com##.rating-bar__fill
rumble.com##.rating-bar
@Ethorbit
Ethorbit / evsieve-hooks.service
Last active April 26, 2025 17:42
My Proxmox evsieve hooks for controlling custom events on the host while inside a GPU-passthrough VM. Allows switching between passthrough VMs.
[Unit]
Description=Run custom evsieve hooks.
[Service]
Type=simple
ExecStart=bash -c '/usr/local/sbin/evsieve-hooks.sh'
Restart=always
RestartSec=1s
[Install]
@Ethorbit
Ethorbit / hide-youtube-ratings.txt
Last active April 16, 2025 18:23
UBlock Origin filter to hide the YouTube likes and dislike button. Since YouTube destroyed the dislike count, likes are now meaningless to the end user and only serve as a distraction.
youtube.com##segmented-like-dislike-button-view-model:style(display: none !important)
@Ethorbit
Ethorbit / crx-file-url.txt
Created April 12, 2025 23:32
URL format for downloading Chrome extensions as files on disk (.crx)
https://clients2.google.com/service/update2/crx?response=redirect&prodversion=[BROWSER VERSION HERE]&acceptformat=crx2,crx3&x=id%3D[EXTENSION ID HERE]%26uc
Replace BROWSER ID with version printed in about:version
Replace EXTENSION ID with the string at the end of the Chrome Webstore extension's URL
@Ethorbit
Ethorbit / hide-youtube-thumbnails-and-avatars.txt
Last active July 31, 2025 00:40
Ublock Origin filter to hide YouTube thumbnails and avatars so you don't bombard your brain with random imagery which can harm attention span. Pair it with the Unhook extensions.
youtube.com###thumbnail:style(display:none !important)
youtube.com##yt-avatar-shape
! Jul 30, 2025 https://www.youtube.com
www.youtube.com##.yt-lockup-view-model-wiz__content-image
@Ethorbit
Ethorbit / hide-reddit-distractions.txt
Last active April 12, 2025 08:21
Ublock Origin filter to hide the Reddit distraction sidebars which serve to prolong engagement and waste your time
reddit.com##div[class^='right-sidebar-contents']
reddit.com###left-sidebar-container:style(display:none !important)
reddit.com###main-content:style(display:block !important)
reddit.com###main-content:style(position:absolute !important)
reddit.com###main-content:style(width:50% !important)
reddit.com###main-content:style(padding-right:25% !important)