Luke Oliff.
2022
TIL: Configuring pre-commit Hooks for Python and Node ReposOriginalpre-commit runs linters and formatters on every git commit. A .pre-commit-config.yaml enforces the same checks across every contributor.TIL
TIL: Testing CLI Tools With pytest in PythonOriginalpytest with subprocess or click's test runner validates CLI output, exit codes, and error messages without manual terminal checks.TIL
TIL: Semantic Versioning With the semver CLIOriginalThe semver CLI validates, compares, and increments version strings from the terminal. No more manual math on MAJOR.MINOR.PATCH.TIL
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