TIL
Short things I have learned — snippets, discoveries, and quick explanations.
Bun Shell and Bun Cron Basics
Two Bun APIs that have quietly replaced half of my scripting toolkit: Bun Shell for running shell commands from TypeScript, and Bun Cron for scheduling them. Here's the short tour.
- bun
- typescript
- scripting
Bun Shell Meets Replicate: A Tiny Stack With a Huge Surface Area
Bun Shell plus the Replicate SDK is one of those combinations where the sum is wildly bigger than the parts. A single TypeScript file can now reach into thousands of hosted models, pipe the output into real files on disk, and glue the whole thing into the rest of my system.
- bun
- replicate
- ai
- scripting
Finding What's on a Port (and Killing It Safely)
Every dev has the same 30-second ritual: a port is in use, run lsof, squint at the PID, kill it, try again. Here's a small, safer script you can drop into your shell today.
- cli
- bun
- dev-tools
- macos
Shipping a CLI as a Single Bun Binary
bun build --compile takes a TypeScript entry point and spits out one native executable. No node_modules, no Node install, no Docker. Dropping it into /usr/local/bin makes your personal tooling feel like a first-class Unix command.
- bun
- cli
- distribution
- typescript
Stripe From the Terminal: Payment Links and Checkout Sessions in One Command
Most of what I used to do in the Stripe dashboard turns out to be three API calls and a prompt. A small CLI over the Stripe SDK kills the dashboard tab for 80% of day-to-day tasks.
- stripe
- bun
- cli
- payments