Skip to content

Instantly share code, notes, and snippets.

View statico's full-sized avatar

Ian Langworth ☠ statico

View GitHub Profile
@statico
statico / Playwright MCP inside a Nono Sandbox.md
Created April 15, 2026 23:33
Playwright MCP inside a Nono Sandbox

Playwright MCP inside a Nono Sandbox

  1. Add --open-port 8931 to the nono args
  2. npx @playwright/mcp@latest --headless --isolated --browser chrome --port 8931
  3. claude mcp add --scope user --transport http playwright http://localhost:8931/mcp
@statico
statico / Playwright MCP + Claude Code + nono.sh Sandbox (macOS).md
Created April 9, 2026 05:25
Playwright MCP + Claude Code + nono.sh Sandbox (macOS)

Playwright MCP + Claude Code + nono.sh Sandbox (macOS)

Problem

Browsers cannot launch inside nono.sh sandboxes on macOS. The Seatbelt kernel sandbox blocks Mach IPC (bootstrap_check_in) and xattr syscalls that browsers require for multi-process communication.

What we tested:

@statico
statico / How codewiki.google Works.md
Created March 30, 2026 03:28
How codewiki.google Works

How codewiki.google Works

Stack: Angular app with Three.js embedded directly (~1MB in the JS bundle). No GSAP, no Lottie, no external animation libraries.


1. Cube Split/Assemble Animation

Three.js + scroll-driven interpolation. The cube is not one mesh breaking apart — it's two sets of PlaneGeometry faces (split state vs. assembled state) with the visible cube interpolating between them:

@statico
statico / math-tutor.html
Created March 12, 2026 00:45
Math Tutor - single page HTML app for 9-year-old level math practice
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Math Tutor</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Segoe UI', system-ui, sans-serif;
@statico
statico / Reverse-Engineering the Quicken for Mac (2007-era) QDF Bundle Format.md
Created March 9, 2026 20:03
Reverse-Engineering the Quicken for Mac (2007-era) QDF Bundle Format

Reverse-Engineering the Quicken for Mac (2007-era) QDF Bundle Format

Background

A Quicken for Mac data file (circa 2007-2008, Quicken Mac 2007) was provided as a macOS bundle directory with no working copy of Quicken available to export from. The goal was to extract transaction data (dates, payees, check numbers, memos, and amounts) into a CSV.

Bundle Structure

@statico
statico / Gowanus Canal.md
Created March 6, 2026 21:39
The Gowanus Canal: A 1.8-Mile Monument to Filth

The Gowanus Canal: A 1.8-Mile Monument to Filth

Generated with Claude Code + Opus 4.6

The "Black Mayonnaise"

The star of the show is the canal's infamous bottom sediment, affectionately known as "black mayonnaise" — a thick, oily sludge that is in some places up to 20 feet deep. It's a lethal cocktail of:

  • Coal tar from old manufactured gas plants
  • Heavy metals: mercury, lead, copper, arsenic, chromium
@statico
statico / starfield.ts
Last active March 3, 2026 21:52
starfield.ts
#!/usr/bin/env bun
// ── Star Field ──────────────────────────────────────────────────────
// Parallax star field that scrolls right-to-left in the terminal.
// 3 depth layers, 256-color, differential rendering (only redraws
// changed cells). Supports ASCII and Unicode glyph modes, adjustable
// star density, scroll speed, and color saturation — all via hotkeys.
// Made with Claude Code.
//
// Usage: bun starfield.ts [--ascii|--unicode] [--stars N] [--speed N] [--sat N]
@statico
statico / Playwright MCP in Docker (ARM64).md
Created February 28, 2026 23:21
Playwright MCP in Docker (ARM64)

Playwright MCP in Docker (ARM64)

Problem

The Playwright MCP server (@playwright/mcp) defaults to Chrome (channel: "chrome"), expecting it at /opt/google/chrome/chrome. Chrome has no ARM64 Linux binaries, so it fails immediately. The browser_install MCP tool also fails on ARM64.

Claude Code ignores args and env fields in ~/.claude/mcp.json for the playwright MCP server — it always launches npm exec @playwright/mcp@latest with no arguments and no custom env vars. So --browser firefox, env vars like PLAYWRIGHT_MCP_BROWSER, and custom command wrapper scripts all have no effect.

Fix

@statico
statico / claude-captcha-deepdive.md
Last active February 26, 2026 04:40
claude-captcha-deepdive

How Modern CAPTCHAs Actually Work: A Deep Dive

The Big Picture

Your intuition is correct: all three systems fundamentally collect a mass of signals, send them to black-box server-side ML models, and get back a probabilistic score. None of them have a clean deterministic "if X then bot" rule. It's all heuristics and probability. But the depth of what they collect is staggering.


1. Google reCAPTCHA: The VM

@statico
statico / Token Efficiency: JSON Alternatives for LLMs.md
Last active February 13, 2026 03:35
Token Efficiency: JSON Alternatives for LLMs

Here's the current state of the art:

Token Efficiency: JSON Alternatives for LLMs

The Rankings (tokens for same data)

Format Token Reduction vs JSON LLM Accuracy
TOON ~40% fewer 73.9% (best for tabular)
Markdown 34-38% fewer Good (cost-optimized)