Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@PabloLION
PabloLION / vscode-shift-enter-newline.md
Last active October 19, 2026 04:39
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

{
@poivronvert
poivronvert / setup_vllm_wsl_ubuntu_22.04.md
Created September 26, 2025 11:39
How to setup vLLM on WSL Ubuntu 22.04

Setup vLLM on WSL Ubuntu 22.04

This guide shows step-by-step instructions to setup vLLM on WSL Ubuntu 22.04 with NVIDIA GPU support.


1. Prerequisites

1.1 Check installed WSL version

@pythoninthegrass
pythoninthegrass / .env.example
Last active November 24, 2026 21:17
opencode config
CONTEXT7_API_KEY=
FIREWORKS_API_KEY=
TINYFISH_API_KEY=
@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]
@pythoninthegrass
pythoninthegrass / hello
Last active November 18, 2026 17:30
Demo for uv's PEP 723 script support with various dependencies.
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.13,<3.14"
# dependencies = [
# "httpx[http2]>=0.28.1,<1",
# "python-decouple>=3.8",
# "sh>=2.2.2",
# ]
# [tool.uv]
@artemgetmann
artemgetmann / claude-code-token-saving-guide.md
Last active October 17, 2026 16:41
Practical workflow for reducing token usage in Claude Code while preserving session continuity. Includes compacting strategies, CLAUDE.md structure, modular context management, and prompt engineering tips.

🧠 How to Save Context Tokens When Using Claude Code

This is a personal reference workflow for minimizing token usage while maintaining project continuity across Claude Code (Sonnet 4 with file access).


✅ Setup: Populate CLAUDE.md

Claude loads CLAUDE.md automatically at session start.