Luke Oliff.
2023
TIL: Implementing Exponential Backoff in TypeScriptOriginalA simple retry loop with exponentially increasing delays handles transient API failures. Add jitter to avoid thundering herd on recovery.TIL
TIL: Finding Duplicate Files With fdupesOriginalfdupes scans a directory tree for duplicate files by comparing checksums. Reclaim disk space from accidental copies and repeated downloads.TIL
TIL: Processing STT Word Timestamps With awkOriginalawk parses word-level timestamps from STT output in one line. Extract, filter, and reformat without importing a CSV library.TIL
2022
TIL: Using set -e and set -x in Bash ScriptsOriginalset -e exits on any error. set -x prints every command before running it. Together they make shell scripts fail fast and show their work.TIL
TIL: Trimming Silence From Audio Files With SoXOriginalsox detects and removes silence from audio files automatically. Clean up recordings before processing without a GUI editor.TIL
TIL: Creating Python Virtual Environments With venvOriginalpython -m venv creates an isolated environment with its own packages. No more conflicts between projects needing different library versions.TIL
TIL: Auto-Restarting Node.js Processes With nodemonOriginalnodemon watches your source files and restarts the process on any change. No manual Ctrl-C up-arrow-enter cycle during development.TIL
TIL: Parsing Command-Line Arguments With Python's argparseOriginalargparse generates --help text, validates types, and parses positional and optional arguments. Built into Python, no third-party deps.TIL
TIL: Using tmux for Persistent Terminal SessionsOriginaltmux keeps your terminal session alive when you disconnect. Reattach from anywhere — long-running processes survive SSH drops.TIL
TIL: Checking File Integrity With shasumOriginalshasum computes a SHA hash of any file. Compare hashes before and after transfer to catch corruption — no extra tools needed.TIL