Skip to content

Instantly share code, notes, and snippets.

@steelbrain
steelbrain / README.md
Last active October 29, 2026 20:56
KRdp: fix a remote picture that stays stale

KRdp: fix a remote picture that stays stale

If you connect to a KDE Plasma desktop through its built-in Remote Desktop (KRdp), parts of the picture can stay old after they changed on the desktop. A window you closed may still show, or text you typed may not appear. It clears only much later, or when that area changes a lot. It happens with any client that gets H.264 video from KRdp: Windows App, Remote Desktop Connection (mstsc), FreeRDP, Remmina, and others.

fix.sh makes KRdp send a different kind of video, RemoteFX Progressive,

@steelbrain
steelbrain / CLAUDE.md
Last active November 3, 2026 01:03
Claude.md

Global instructions

Questions for the user

  • Never ask a blocking question (no AskUserQuestion or any other prompt that waits for an answer). Put the question in a normal message, with the options and a recommendation, and keep working on everything else. The user answers when back at the computer. (2026-10-10: one blocking question stalled a whole orchestration session for about six hours.)
@steelbrain
steelbrain / e1c37ea4d4a74fb6addcfeede9a34d521de44fa5.patch
Last active November 14, 2026 11:07
QEMU vmapple boot macos 14 through 26
commit e1c37ea4d4a74fb6addcfeede9a34d521de44fa5
Author: Anees Iqbal <hello@aneesiqbal.ai>
Date: Thu Oct 1 05:31:30 2026 +0300
hw/vmapple: boot macOS 14 and later guests
macOS 14 and later guests stop in their kernel's first instructions:
the kernel spins with "hvc #0; cbnz x0, ." on each of its pointer
authentication hypercalls, which the public Hypervisor.framework API
fails without an exit. macOS 15 and later also panic when APFS mounts
@steelbrain
steelbrain / c912618391eb4fd558e0be6abc90dd6db0c39458.patch
Created September 30, 2026 22:44
QEMU patch for vmapple CPU PAuth
From c912618391eb4fd558e0be6abc90dd6db0c39458 Mon Sep 17 00:00:00 2001
From: Anees Iqbal <hello@aneesiqbal.ai>
Date: Thu, 1 Oct 2026 00:03:01 +0300
Subject: [PATCH] hw/vmapple: start secondary CPUs on the boot CPU's PAuth keys
A macOS guest on vmapple under HVF brings up only its boot CPU. With
-smp N, every secondary faults on its first return from
machine_load_context(), panics, and spins in its panic handler with
interrupts masked: N-1 host cores at 100%, and a guest on one CPU.
@steelbrain
steelbrain / commands.sh
Created June 22, 2026 02:29
Install & use NVK over NVIDIA drivers in cachyos
# 1. Install NVK userspace (Mesa nouveau Vulkan driver, + 32-bit for Steam)
sudo pacman -S --needed vulkan-nouveau lib32-vulkan-nouveau
# 2a. Un-blacklist nouveau by shadowing the proprietary file from /etc
# (/etc/modprobe.d wins over /usr/lib/modprobe.d for the same filename)
sudo tee /etc/modprobe.d/nvidia-utils.conf >/dev/null <<'EOF'
# Shadows /usr/lib/modprobe.d/nvidia-utils.conf to drop "blacklist nouveau".
# Delete this file to restore the proprietary nvidia driver.
EOF
@steelbrain
steelbrain / starship.toml
Last active July 21, 2025 06:10
Starship terminal config
# Starship configuration for prezto-like appearance
# Disable the blank line between prompts
add_newline = false
# Format string - defines the overall prompt structure
format = """
$directory\
$git_branch\
$git_status\