Skip to content

Instantly share code, notes, and snippets.

@timsonner
timsonner / fix-mba91-trackpad.sh
Created September 5, 2026 05:59
Fix - MacBook Air 9,1 trackpad - Omarchy
#!/usr/bin/env bash
set -euo pipefail
cp /tmp/mba91-trackpad-fix/local-overrides.quirks /etc/libinput/local-overrides.quirks
cp /tmp/mba91-trackpad-fix/61-apple-t2-trackpad-internal.hwdb /etc/udev/hwdb.d/61-apple-t2-trackpad-internal.hwdb
systemd-hwdb update
udevadm trigger -s input
echo "Installed. Re-login or restart Hyprland for libinput to fully re-open the device."
@timsonner
timsonner / fix-wifi.md
Last active September 5, 2026 04:04
Macbook Air T2 19,1 Wi-Fi Fix - WPA3 hidden SSID discovery. Omarchy Quattro.
# see if the footgun is back
cat /etc/modprobe.d/brcmfmac.conf

# if it sets feature_disable=0x82000, clear it:
sudo sed -i '/feature_disable/d' /etc/modprobe.d/brcmfmac.conf
# or empty/remove that file if that's all it contains

sudo modprobe -r brcmfmac brcmutil 2>/dev/null
sudo modprobe brcmfmac
@timsonner
timsonner / wslc-arch-rdp-guide.md
Created August 7, 2026 04:51
Install guide for running a full Arch Linux XFCE desktop inside a WSL container, accessed via RDP from Windows.

Arch XFCE Desktop over RDP with WSL Containers (wslc)

Install guide for running a full Arch Linux XFCE desktop inside a WSL container, accessed via RDP from Windows.

Adapted from the Podman version of this guide.


Prerequisites

@timsonner
timsonner / podman-arch-rdp-guide.md
Last active July 28, 2026 05:28
Arch desktop over RDP with Podman

Arch XFCE Desktop over RDP with Podman
Install guide


0. Prepare the host

You need Podman (to run the container) and an RDP client (to connect to it).

sudo apt update
@timsonner
timsonner / cockpit-install.md
Created July 25, 2026 08:41
Cockpit install

Cockpit — VM & Podman support

Quick install reference for this host (Ubuntu).

Install

Core + Virtual Machines (libvirt)

sudo apt update
@timsonner
timsonner / set-zfs-arc.md
Last active July 19, 2026 22:05
Cap ZFS ARC to free RAM under VMs / high memory pressure

One-liners to limit ZFS ARC (live + permanent) so it doesn’t eat most of your RAM next to KVM/libvirt guests. Defaults leave arc_max uncapped; 4–8 GB is a good desktop/VM ceiling.

Live:

# 8 GB ZFS ARC Cache
echo $((8 * 1024 * 1024 * 1024)) | sudo tee /sys/module/zfs/parameters/zfs_arc_max
# 4 GB ZFS ARC Cache
@timsonner
timsonner / debloat-ubuntu.sh
Last active July 19, 2026 21:14
Debloat Ubuntu 26.04: Remove Snaps (App Store), MOTD, Software Updater, Help, and Ubuntu Pro / ESM messages in apt
#!/usr/bin/env bash
# --- 1. Disable MOTD News ---
systemctl stop motd-news.timer motd-news.service
systemctl disable motd-news.timer
chmod -x /etc/update-motd.d/50-motd-news
if [ -f /etc/default/motd-news ]; then
sed -i 's/^ENABLED=1/ENABLED=0/' /etc/default/motd-news
fi
@timsonner
timsonner / fix-nvidia.sh
Created July 19, 2026 11:55
fix broken nvidia install ubuntu 26.04
#!/usr/bin/env bash
# Fix NVIDIA RTX 3050 Mobile on Ubuntu 26.04 (XPS 15 9520)
# Root causes found:
# 1) GRUB has nomodeset -> disables KMS (i915 + nvidia-drm)
# 2) DKMS nvidia modules signed with a private key obscure Canonical-signed modules
# 3) Secure Boot is ON and MOK only has Canonical CA -> DKMS modules cannot load
# 4) Partial server/headless stack installed instead of full desktop driver
set -euo pipefail
if [[ ${EUID:-$(id -u)} -ne 0 ]]; then
@timsonner
timsonner / one-liners.md
Created June 27, 2026 17:43
Taken from my GitHub profile page
@timsonner
timsonner / python-module-commands.md
Created June 13, 2026 22:41
Python module commands

Python module commands

1. Installed packages

Show what pip has installed in the current environment:

python3 -m pip list

2. Details / dependencies for an installed package