Skip to content

Instantly share code, notes, and snippets.

@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

@timsonner
timsonner / pangolin-mobile-tunnel-fix.ps1
Last active June 6, 2026 04:58
Hack to allow Pangolin tunnel over mobile hotspot on Windows.
# Fixes Pangolin DNS issues with some mobile hotspots where they don't allow 1.1.1.1 or others and force device to use 172.20.10.1:53
# This patches olm config file on the fly to allow connection. Allows Pangolin tunnel over personal hotspot. uWu.
# Run in elevated PowerShell terminal
# Get the active network's DNS server IP (excluding loopback and Pangolin itself)
$dnsServers = @(Get-DnsClientServerAddress -AddressFamily IPv4 |
Where-Object { $_.InterfaceAlias -ne "Pangolin" -and $_.InterfaceAlias -notlike "Loopback*" -and $_.ServerAddresses.Count -gt 0 } |
Select-Object -ExpandProperty ServerAddresses)
if ($dnsServers.Count -eq 0) {
@timsonner
timsonner / hermes-sound-through-ssh-guide.md
Created June 1, 2026 08:12
How to get voice recording working for Hermes agent over SSH from Windows PowerShell session to remote Linux host

Audio Setup Guide: Remote Sound Routing (Windows & Linux)

This guide shows you how to route sound from your Windows client to your remote Linux server using PulseAudio and SSH tunneling. This enables your CLI agent or remote application (like Hermes) to record and play sound directly.


1. Client-Side Setup (Windows)

  1. Download PulseAudio for Windows:
  • Download the latest community-maintained build (e.g., pulseaudio-win32 by pgaskin).
@timsonner
timsonner / install-instructions.md
Created May 21, 2026 06:40
Google Gemini computer_use Playwright demo

Google Gemini and Playwright / computer_use demo

1. Clone Google's official computer-use-preview repository

git clone https://github.com/google-gemini/computer-use-preview.git
cd computer-use-preview

2. Set up a local Python virtual environment

@timsonner
timsonner / SKILL.md
Created May 21, 2026 05:59
Claude. Interact with web browser content when rendered as <canvas> element using mcp__computer-use__

Skill: Interacting with Canvas-Rendered Browser Content

When to use

Use this skill when:

  • get_page_text returns empty or only navigation chrome
  • read_page returns an empty accessibility tree
  • The page is known to use canvas, WebGL, or a custom rendering engine
  • You need to visually read or interact with content that DOM tools cannot access

@timsonner
timsonner / opencode.json
Last active May 2, 2026 23:04
OpenCode config with local Unsloth Studio model, default model set to OpenRouter Owl Alpha. Updated permissions. Global "~/.config/opencode/opencode.json" or local ".opencode/opencode.json"
{
"$schema": "https://opencode.ai/config.json",
"model": "openrouter/owl-alpha",
"provider": {
"openrouter": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenRouter",
"options": {
"baseURL": "https://openrouter.ai/api/v1",
"apiKey": "sk-or-v1-..."
@timsonner
timsonner / fix-secureboot-mok.sh
Created April 30, 2026 06:40
Sets up a Machine Owner Key (MOK) to sign DKMS modules (nvidia, evdi)
#!/bin/bash
# fix-secureboot-mok.sh
#
# Sets up a Machine Owner Key (MOK) to sign DKMS modules (nvidia, evdi)
# so they load under Secure Boot on Proxmox VE / Debian trixie.
#
# Root cause: Secure Boot requires all kernel modules to be signed by a key
# trusted by the UEFI firmware. DKMS-built modules (nvidia, evdi/DisplayLink)
# are unsigned by default. A MOK enrolled in shim's MOK database fills this gap.
#
@timsonner
timsonner / fix-unsloth-cuda.sh
Created April 30, 2026 06:18
Rebuilds Unsloth Studio's llama-server with CUDA support on Debian trixie (glibc 2.41+) with kernel 7.0+ and NVIDIA driver 595+
#!/bin/bash
# fix-unsloth-cuda.sh
#
# Rebuilds Unsloth Studio's llama-server with CUDA support on Debian trixie
# (glibc 2.41+) with kernel 7.0+ and NVIDIA driver 595+.
#
# Root causes fixed:
# 1. Unsloth ships a CPU-only llama-server binary
# 2. CUDA 12.x toolkit installer requires gcc <= 13 (system has gcc 14)
# 3. CUDA 12.x math_functions.h missing noexcept on sinpi/cospi,
@timsonner
timsonner / fix-nvidia.sh
Last active May 15, 2026 00:13
Installs NVIDIA driver 595+ on Proxmox VE / Debian trixie with kernel 7.0+ because 550 is incompatible. Blacklists Nouveau and NovaCore.
#!/bin/bash
# fix-nvidia.sh
#
# Installs NVIDIA driver 595+ on Proxmox VE / Debian trixie with kernel 7.0+.
#
# Root cause: The Debian/Proxmox nvidia-kernel-dkms package (version 550) cannot
# build against kernel 6.17+ or 7.0+ due to DRM API changes (struct_mutex removal,
# framebuffer signature changes). The official .run installer at 595.71.05+ includes
# the necessary patches.
#
@timsonner
timsonner / fix-displaylink.sh
Last active April 30, 2026 05:03
Fixes third monitor not showing with DisplayLink on Proxmox VE / Debian trixie with kernel 7.0+ and GNOME Wayland. Re-connect dock after run.