Skip to content

Instantly share code, notes, and snippets.

View jordangarcia's full-sized avatar

Jordan Garcia jordangarcia

View GitHub Profile
@jordangarcia
jordangarcia / interview-laptop-provisioning.md
Created April 15, 2026 17:47
Interview Laptop Provisioning Plan — Kandji + Git + SOPS

Interview Laptop Provisioning

Problem

Laptops are unreliable for interviews — passwords missing, software not installed, candidate artifacts visible from previous interviews, no clear ownership, interviewers scrambling to use personal machines.

Architecture

Split responsibility between Kandji (IT-managed, slow-changing) and a git repo (eng-managed, fast-changing).

@jordangarcia
jordangarcia / greview
Created April 15, 2026 05:34
greview - PR code review in worktrees with Claude
#!/usr/bin/env bun
const USAGE = `greview - PR code review in worktrees with Claude
Usage:
greview <github-url|graphite-url|pr-number>
Examples:
greview https://github.com/gamma-app/gamma/pull/4521
greview https://app.graphite.com/github/pr/gamma-app/gamma/4521

PR #19026 — Suggested simplification

The polymorphism win (no any casts, cleaner component API) can be achieved without the abstract class hierarchy. Here's the alternative.

Types — plain objects, no classes

Keep the original discriminated union types unchanged:

type BaseQuestion = {
@jordangarcia
jordangarcia / datadog-renewal-2026-overview.html
Last active April 15, 2026 00:12
Datadog Renewal 2026 - Contract Overview & Recommendations
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Datadog Renewal 2026 — Contract Overview & Recommendations</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
@jordangarcia
jordangarcia / body-tag-early-stop-investigation.html
Created April 8, 2026 22:32
GenerateDeckContinuous: Body Tag Early Stop Bug Investigation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GenerateDeckContinuous: Body Tag Early Stop Bug</title>
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
{
"agentState": {
"attachedSources": [],
"docGenerationSources": [
{
"id": "01KNQC9AJ78NFGMMQ6FR8VHPYJ",
"name": "Scaling Managed Agents: Decoupling the brain from the hands",
"type": "webpage",
"url": "https://www.anthropic.com/engineering/managed-agents",
"workspaceId": "p7r4it3una5hm8z",
/* KanagawaJG — Obsidian theme from kanagawa.nvim palette */
/* ── Typography / spacing ── */
body {
--font-interface-theme:
"Bear Sans UI", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica,
Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
--font-text-theme:
"Bear Sans UI", -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica,
Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;

Gemini Streaming Refactor Plan

Motivation

gemini.model.ts is 960 lines, mixes HTTP transport, SSE parsing, cumulative/fragmented dedup, S3 upload orchestration, backpressure handling, and business logic in one class. The raw fetch approach (bypassing the @google/genai SDK) is necessary for memory efficiency — the SDK buffers entire request bodies via JSON.stringify and parses full response objects per chunk — but the implementation can be decomposed into composable layers.

Streaming primitive: AsyncIterable<T> → AsyncGenerator<U>

All transforms are functions: (input: AsyncIterable<A>) → AsyncGenerator<B>.

categories
[[Plans]]
project
[[Design Anything]]
people
resume claude --resume b9db3a88-ec96-4277-b3b1-f9e7339e4fdc
date 2026-03-04
#!/bin/bash
# Show processes spawned from wezterm, with detailed view of gamma dev stack
WEZTERM_PID=$(ps -eo pid,command | grep "[w]ezterm-gui" | awk '{print $1}')
if [[ -z "$WEZTERM_PID" ]]; then
echo "wezterm not running"
exit 1
fi