Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / com.user.headroom.proxy.plist
Created January 14, 2026 21:13
Headroom proxy server launchagent to reduce LLM context size
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.headroom.proxy</string>
<key>ProgramArguments</key>
<array>
<string>/Users/lance/.local/bin/headroom</string>
<string>proxy</string>
@pythoninthegrass
pythoninthegrass / com.user.mole.nightly.plist
Created January 14, 2026 21:11
Mole launchagent for nightly macOS cleanup
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.mole.nightly</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/mo</string>
<string>clean</string>
@pythoninthegrass
pythoninthegrass / marimo.toml
Created October 28, 2025 19:01
Marimo config
[experimental]
[completion]
copilot = "github"
activate_on_typing = true
[save]
autosave_delay = 3000
format_on_save = false
autosave = "after_delay"
@pythoninthegrass
pythoninthegrass / com.user.disable-rcd.plist
Created October 12, 2025 02:21
Disable Apple Music (née iTunes) from launching via media keys
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.disable-rcd</string>
<key>ProgramArguments</key>
<array>
<string>/bin/launchctl</string>
<string>unload</string>
@PabloLION
PabloLION / vscode-shift-enter-newline.md
Last active January 14, 2026 02:17
Fixing Shift+Enter newline in VS Code terminal (Claude Code)

Fixing Shift+Enter newline in VS Code terminal (Claude Code)

While exploring Claude Code’s /terminal-setup command (found via a /sta fuzzy search in v1.0.111), I noticed the default Shift+Enter binding for terminal input inserts an unwanted backslash before the newline.

Claude Code currently drops its keybinding into the standard VS Code profile (for example, ~/Library/Application Support/Code/User/keybindings.json on macOS). I spend most of my time in VS Code Insiders, so I copied the entry into ~/Library/Application Support/Code - Insiders/User/keybindings.json to make the shortcut available there, too.

Problematic binding

{
@pythoninthegrass
pythoninthegrass / sysctl.plist
Last active September 7, 2025 20:10
Set macOS VRAM persistently
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.sysctl</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/sysctl</string>
<string>-w</string>
# /etc/caddy/Caddyfile
{
auto_https disable_redirects
}
:80 {
respond "Hello from HTTP port 80"
}
@pythoninthegrass
pythoninthegrass / coexp33_installer.py
Created August 19, 2025 05:47
Clair Obscur Expedition 33 performance mod installer
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "httpx>=0.28.1",
# "rich>=13.9.4",
# "sh>=2.2.2",
# "python-decouple>=3.8",
# ]
#!/usr/bin/env bun
"use strict";
const fs = require("fs");
const { execSync } = require("child_process");
const path = require("path");
// ANSI color constants
const c = {
cy: '\033[36m', // cyan
@pythoninthegrass
pythoninthegrass / install_python.sh
Last active August 10, 2025 08:22
Install custom python versions in unraid
#!/usr/bin/env bash
# Modular Python installer with Docker fallback
set -e
# Help function
halp() {
cat << EOF
Usage: $(basename "$0") [version]