Skip to content

Instantly share code, notes, and snippets.

View thecoder-001's full-sized avatar
〽️
Fighting entropy

Thecoder001 thecoder-001

〽️
Fighting entropy
View GitHub Profile
@thecoder-001
thecoder-001 / fullscreen-menubar.md
Created May 13, 2025 15:44
Selectively show menu bar in full screen MacOS
  1. Get the id of the app osascript -e 'id of app "Ghostty"'.
  2. Then simply run defaults write <com.example.app> -bool true

Or just do...

defaults write $(osascript -e 'id of app "App name"') AppleMenuBarVisibleInFullscreen -bool true

to reset

defaults delete com.example.app AppleMenuBarVisibleInFullscreen
@thecoder-001
thecoder-001 / opensuse-cloudflare-warp-fix.md
Last active December 26, 2022 13:14
Install cloudflare warp rpm on openSUSE Tumbleweed.

The rpm provided by cloudflare for centos/rhel doesn't works on OpenSUSE by default (binaries get installed but stuff isn't configured properly). Here's how to fix it.

Tested on: OpenSUSE Tumbleweed, package ver: 2022.10.116

sudo zypper in rpmrebuild
rpmrebuild -e -p cloudflare_warp_2022_10_116_1_x86_64_8b84d787e8.rpm

Now, after the spec file has opened on your editor, make the following changes:

@thecoder-001
thecoder-001 / Inspiron_5559_undervolt.md
Created August 22, 2022 17:23
nvram edits to enable undervolting on Dell Inspiron 5559
setup_var_3 0x108 0x00
setup_var_3 0x182 0x00

ps: Would add other stuff later. Though this should be complete in itself

@thecoder-001
thecoder-001 / nouveau-qt-wayland-fix.md
Last active December 26, 2022 13:12
Fix for qt/kde crashing on nouveau mesa under wayland.

Update: Workaround no longer needed in my testing. (KDE Plasma 5.26.4, QT 5.17.5, Kernel 6.1.0)

ref: https://bbs.archlinux.org/viewtopic.php?id=271872

  • known nouveau bug, has problems with multi-thread opengl.
  • Supposedly, qt already enforces it on x11.

Fix: Create /etc/profile.d/qt-fix.sh with