Skip to content

Instantly share code, notes, and snippets.

View Ethorbit's full-sized avatar

Ethorbit Ethorbit

View GitHub Profile
@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 April 12, 2025 08:45
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###decorated-avatar:style(display:none !important)
@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)
@Ethorbit
Ethorbit / brave-remove-bloat.reg
Last active March 31, 2025 21:40
Run this registry file to remove Brave bloat on Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Policies\BraveSoftware\Brave]
"BraveRewardsDisabled"=dword:00000001
"BraveWalletDisabled"=dword:00000001
"BraveVPNDisabled"=dword:00000001
"BraveAIChatEnabled"=dword:00000000
@Ethorbit
Ethorbit / steam-games-wrong-display-fix.md
Last active January 28, 2025 08:26
Fix Steam game using wrong X DISPLAY due to Valve's container runtime disregarding host environment

If you ran the Steam process or Flatpak with a custom DISPLAY #, you might have noticed that games continue to use DISPLAY=:0 regardless

The reason for this is that Valve created their own container runtime called 'Steam Linux Runtime', and for whatever reason, they made the containers disregard host environment and did not give users the ability to set custom environment variables.

The "brute force" solution, the only one I know of

  • Right-click the Linux Runtime in your library
@Ethorbit
Ethorbit / linux-ryzen-nested-virtualization-crashing-host-solution.md
Last active January 5, 2025 19:47
The solution for a Linux hypervisor host crashing due to a Ryzen vulnerability with Nested Virtualization

My scenario: I wanted to use Hyper-V's GPU Partitioning and WSL technology inside a Proxmox Virtual machine so that I could continue using Linux natively while taking advantage of Microsoft's groundbreaking virtualization features.

Problem

There is a vulnerability with the Ryzen Processor that allows a nested virtual machine's application to crash the underlying host system and even compromise the host entirely.

Sources: