save the Chrome console to a file
a web app left open overnight showed errors in the morning. right-click the console, save as, and the whole session is a log file.
copy a Claude Code answer as markdown with /copy
mouse-copying a Claude Code answer loses the code ticks and the links. /copy puts the raw markdown on the clipboard instead.
finding what freezes VS Code: tsserver log and extension host profile
cmd+click on a type froze VS Code, and the tsserver log looked healthy. an extension host profile found the culprit.
disable Chrome's AI features with a macOS config profile
Chrome put AI in my address bar, and the flags I turned off came back after an update. a macOS config profile sets the enterprise policy that turns it off for good.
lazygit: open a file straight from the diff
to edit the file i'm looking at, i'd have to find it again in my editor. pressing `e` opens it directly, in whatever editor i configure.
reset Karabiner after sleep without a reboot
Karabiner stopped remapping after my Mac woke. i finally found a way to reset it without a reboot.
keep an AVD session awake with f15
AVD logged me out over lunch and killed a long job. f15 is a key that does nothing, so I send one every two minutes to look busy.
make shift+enter a newline in Claude Code on Windows
shift+enter sent my half-written message instead of making a newline. ctrl+j fixes it in any terminal; a keybinding wins back the muscle memory.
fake a non-retina screen on Chrome
a Chrome flag retired the old non-retina monitor I kept around just to test on.
stop pnpm churning package.json line endings
pnpm add rewrote package.json from CRLF to LF and git diffed the whole file. one line in gitattributes fixed it.
TIL the <a> tag has a download attribute
i spotted the download attribute on an anchor tag and assumed Content-Disposition already did the job. turns out it's for when you can't touch the server.
serialize TanStack Query mutations
my optimistic drag and drop raced itself. one scope id fixed it.
reproduce a flaky test with stress-ng
it passed locally and failed on CI. stress-ng made it fail locally too.
fish-style abbreviations for PowerShell
abbreviations expand inline before they run. here's how in PowerShell.
a fish-style prompt for PowerShell
starship gives PowerShell a prompt i can live with.
iTerm: unlimited scrollback
iTerm's default scrollback is 1000 lines. you can turn that off.
pointer events replace touch + mouse in drag and drop
pointerdown/up/move handles both touch and mouse. no more duplicate listeners.
responsive font-weight with tailwind
lighter font weights on HiDPI screens using Tailwind v4 theme variables.
cli tool: worktrunk
git worktree management for humans.
mdx kitchen sink
every MDX formatting option this site supports, in one place.