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 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)
@statico
statico / readme.md
Created February 4, 2026 02:43
nano banana small images

Here's a comprehensive summary of tips for getting Nano Banana (Gemini) to generate images better suited for small use cases:

Pixel Art Tips

Use specific dimension keywords:

  • "32×32 pixel art icon of [subject]"
  • "16-bit pixelated [subject]"
  • "8-bit pixel art in the style of [retro game]"
  • "Low-resolution pixel art" or "chunky pixels"
@statico
statico / index.html
Last active January 3, 2026 19:58
Complete MCU Ratings: Movies & TV Shows - 75 titles • 2008-2025 • Ordered by Release Date
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MCU Ratings</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script>
<style>
body { margin: 20px; font-family: system-ui, sans-serif; background: #030712; color: #fff; }
h1 { text-align: center; margin-bottom: 20px; }
@statico
statico / test.sh
Created December 31, 2025 18:52
logitech litra snippets
function status() {
result=$(/usr/local/bin/hidapitester --vidpid 046D/C900 --open --length 20 \
--send-output 0x11,0xff,0x04,0x01 --read-input --timeout 500 2>/dev/null)
if echo "$result" | grep -q "11 FF 04 01 01"; then
echo "on"
else
echo "off"
fi
}
@statico
statico / 01-export.sh
Created December 12, 2025 07:43
wordpress static export using wget and cloudflare pages
#!/usr/bin/env bash
set -eo pipefail
SITE_URL="http://localhost:8080"
cd "$(dirname "$0")"
mkdir -p export
# Check if the site is up
@statico
statico / mac-apps.md
Last active August 12, 2025 18:14
Mac OS applications that you can download independent of the App Store for demonstration purposes.
@statico
statico / 00_prompts.md
Last active June 20, 2025 21:44
TSX to Low-Token Format Conversion Prompts

TSX to Low-Token Format Conversion Prompts

Ultra-Compressed Format Conversion

Basic Prompt

Convert this TypeScript/TSX code to ultra-compressed low-token format using these rules:

KEYWORDS:
- import → im
#!/usr/bin/env bash
set -eo pipefail
function _hid() {
# https://github.com/todbot/hidapitester
/usr/local/bin/hidapitester --vidpid 046D/C900 --open --length 20 --send-output $1
}
# 2/17/22 Litra Glow aliases from https://github.com/kharyam/litra-driver/issues/13