Luke Oliff.
2022
TIL: Concurrent API Calls With asyncio in PythonOriginalasyncio runs multiple network requests concurrently without threads. gather() collects results as they finish, cutting wall-clock time dramatically.TIL
TIL: Building a CLI Tool With commander.js in Node.jsOriginalcommander.js parses flags, subcommands, and help text from a declarative config. A working CLI takes about ten lines of setup.TIL
2021
TIL: Streaming JSON Parsing With ijson for Large ResponsesOriginalijson parses JSON as it streams in, skipping the full parse. Handles multi-gigabyte responses without running out of memory.TIL
TIL: Converting Audio Formats With ffmpeg in One CommandOriginalffmpeg converts between any audio format with a single command. WAV to MP3, FLAC to OGG, sample rate changes, channel mapping — all in one line.TIL
TIL: Handling WebSocket Streams With the websockets Library in PythonOriginalPython's websockets library opens a persistent connection in a few lines of async code. No polling, no HTTP overhead, just messages in both directions.TIL
TIL: Running GitHub Actions Locally With actOriginalact runs your GitHub Actions workflows on your machine using Docker. No push-and-pray, iterate locally first.TIL
TIL: Creating Tarballs With tar for Deployment PackagesOriginaltar bundles a directory into a single file preserving permissions and structure. One command packages your entire deployable artifact.TIL
TIL: Using git bisect To Find the Commit That Broke a BuildOriginalgit bisect does a binary search through your history to find the exact commit that introduced a bug. Mark good and bad, it does the rest.TIL
TIL: Redirect and Rewrite Rules With Plain _redirects FilesOriginalA _redirects file maps old paths to new ones with one rule per line. No config parser, no build step, just deploy and it works.TIL
TIL: Profiling Node.js Build Performance With node --profOriginalnode --prof generates a V8 tick profile of your script. Process it with --prof-process and see exactly where every millisecond went.TIL