Skip to content

Instantly share code, notes, and snippets.

View Ethorbit's full-sized avatar

Ethorbit Ethorbit

View GitHub Profile
@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:

@Ethorbit
Ethorbit / patch-damages.sh
Created October 20, 2024 01:51
Bash script to replace all SWEP.Primary.Damage = # with SWEP.Primary.Damage = nZCSODmg(#), meant for patching CSO weapons en masse
#!/usr/bin/env bash
WEAPON_LUA_PATH="$1"
patch_damage() {
weapon_lua_file="$1"
primary_damage_line=$(cat "$weapon_lua_file" | grep "SWEP.Primary.Damage")
# File has no SWEP.Primary.Damage set, probably not a weapon
[ -z "$primary_damage_line" ] && return
@Ethorbit
Ethorbit / yt-paid-promotion-banner-remover.txt
Last active March 5, 2025 14:41
Ublock Origin filter to hide YouTube paid promotion banner so you can click the top left of video thumbnails again
www.youtube.com##div[class^='ytInlinePlayerControlsTopLeftControls']
@Ethorbit
Ethorbit / gpupv-acceleration-tut.md
Last active February 5, 2025 16:23
Hyper-V tutorial to partition GPU for virtualization + achieve full GPU acceleration with it and daily drive it.