Skip to content

Instantly share code, notes, and snippets.

View indexzero's full-sized avatar
🗽
✊ Fist in the air in the land of hypocrisy

Charlie Robbins indexzero

🗽
✊ Fist in the air in the land of hypocrisy
View GitHub Profile
@indexzero
indexzero / !ios-osascript
Created July 2, 2026 04:36
A closed loop set of deterministic scripts `claude` made itself to drive iOS simulator based testing using xcrun and ffmpeg
A closed loop set of deterministic scripts `claude` made itself to drive iOS simulator based testing using xcrun and ffmpeg
@indexzero
indexzero / claude.ai.md
Created June 29, 2026 14:44
PROTIPS for quick data extraction when working with common LLM tools

claude.ai (web)

Get all expanded internal thoughts grouped by response

copy(
  [...document.querySelectorAll('div[data-timeline-text]')].map(
    block => [...block.querySelectorAll('.standard-markdown p')]
      .map(p => p.textContent.trim())
 )
@indexzero
indexzero / !whitman-1855
Last active June 19, 2026 17:38
Listener up there ! Here you . . . . what have you to confide to me ?
# Leaves of Grass (1855) — vector trace
Turning the scanned ink of the first edition of Walt Whitman's *Leaves of
Grass* into scalable SVG vector paths — a true raster-to-vector trace of the
original 1855 typography.
> _I bequeath myself to the dirt to grow from the grass I love,
> If you want me again look for me under your bootsoles._
> – Walt Whitman, 1855
@indexzero
indexzero / brave.history.scroll.js
Last active May 24, 2026 04:47
Brave history scroller to force downloads to local sqlite3 database
window.harvesterConfig = {
throttleDelayMs: 100,
// SELF-HEALING ENGINE: Finds the container dynamically if the global variable is missing
getContainer: function() {
if (window.discoveredContainer && document.contains(window.discoveredContainer)) {
return window.discoveredContainer;
}
// Deep search crawler to safely locate the scroll box past Shadow roots
@indexzero
indexzero / _deobfuscating-unminifying-obfuscated-web-app-code.md
Created March 5, 2026 08:04 — forked from 0xdevalias/_deobfuscating-unminifying-obfuscated-web-app-code.md
Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code
@indexzero
indexzero / gist:4d0d898390216bdb7e67c62498c6bbb3
Created February 26, 2026 09:31 — forked from gavinwright-engr/gist:499e96574d7a10d939b34388a3774924
Boris Cherny's Workflow Orchestration agent.md File
# Workflow Orchestration
## 1. Plan Mode Default
- Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
- If something goes sideways, STOP and re-plan immediately — don’t keep pushing
- Use plan mode for verification steps, not just building
- Write detailed specs upfront to reduce ambiguity
## 2. Subagent Strategy
- Use subagents liberally to keep main context window clean
@indexzero
indexzero / download.md
Last active February 4, 2026 03:16
rspack build analysis

How Rspack Downloads the Correct Binary for Each Platform

Rspack uses npm's optional dependencies feature combined with platform filtering to ensure users only download the binary for their specific OS and architecture.

The Mechanism: Optional Dependencies + Platform Filtering

1. Optional Dependencies in @rspack/binding

The main @rspack/binding package (crates/node_binding/package.json) declares all platform-specific packages as optionalDependencies:

@indexzero
indexzero / PROXIES.talk.md
Created January 30, 2026 18:17
Proxies: fast enough for config objects? Probably?

Proxies: From Pariah to Performant

claude cosplaying as the V8-team speaking at JSConf


The Proxy Problem

When ES6 Proxies shipped in 2015, they came with an asterisk. The spec gave us something genuinely powerful—metaprogramming primitives that could intercept fundamental object operations—but the performance story was grim. Internal benchmarks showed property access through a Proxy running 50-100x slower than direct access. We told developers "use sparingly" and hoped for the best.

@indexzero
indexzero / README.md
Created October 9, 2025 03:53
Extract threaded comments from Github Discussions pages in DevTools

GitHub Discussion Thread Extractor

A Chrome DevTools script to extract structured comment data from GitHub discussion threads.

Usage

  1. Navigate to a GitHub discussion page
  2. Open Chrome DevTools Console (Cmd+Option+J on Mac, Ctrl+Shift+J on Windows)
  3. Paste the extraction script
  4. Run it to get JSON structured data
@indexzero
indexzero / README.md
Last active July 17, 2025 14:24
The "as simple as possible npm-init.js file with zero dependencies"