---
title: TIL — Writing — Luke Oliff
description: "Every post on TIL: 113 write-ups on what worked, what broke and what changed."
canonical: https://lukeocodes.dev/blog/category/til
type: website
locale: en_GB
feed: https://lukeocodes.dev/rss.xml
search: https://lukeocodes.dev/search.json?q={query}
schema:
  - "@context": https://schema.org
    "@graph":
      - "@type": WebSite
        "@id": https://lukeocodes.dev/#website
        url: https://lukeocodes.dev
        name: Luke Oliff
        alternateName: lukeocodes
        inLanguage: en
        publisher:
          "@id": https://lukeocodes.dev/authors/luke#person
        description: Personal blog and writing by Luke Oliff — developer relations, voice AI, developer experience.
        potentialAction:
          - "@type": SearchAction
            target:
              "@type": EntryPoint
              urlTemplate: https://lukeocodes.dev/blog/search?q={search_term_string}
            query-input: required name=search_term_string
      - "@type": Person
        "@id": https://lukeocodes.dev/authors/luke#person
        name: Luke Oliff
        url: https://lukeocodes.dev/authors/luke
        description: Engineer and developer relations leader. Writing about developer relations, AI, and the voice industry, from the UK.
        mainEntityOfPage: https://lukeocodes.dev/authors/luke
        givenName: Luke
        familyName: Oliff
        image: https://lukeocodes.dev/authors/luke.jpg
        jobTitle: Engineer and developer relations leader
        sameAs:
          - https://www.linkedin.com/in/lukeocodes
          - https://github.com/lukeocodes
          - https://bsky.app/profile/lukeocodes.dev
          - https://x.com/lukeocodes
          - https://hashnode.com/@lukeocodes
          - https://dev.to/lukeocodes
        knowsAbout:
          - Developer Relations
          - Developer Experience
          - Voice AI
          - Text-to-Speech
          - Answer Engine Optimisation
          - Search Engine Optimisation
          - Open Source
          - Developer Tooling
          - API Design
          - Speech-to-Text
          - Voice Agents
          - Community Building
        knowsLanguage:
          - English
        nationality: British
        alumniOf:
          - "@type": Organization
            name: The Open University
---

[Luke Oliff.](/)

- [Blog](/blog) (current page)
- [CV](/cv)
- [Uses](/uses)
- [User manual](/user-manual)
- [Living with ADHD](/living-and-working-with-adhd)
- [RSS](/rss.xml)

[Luke Oliff · Category](/blog)

# TIL.

113 posts

- [TIL: TypeScript satisfies Checks Your Object and Keeps Its Keys](/til-typescript-satisfies) (Nov 2026 · Original · TIL): The TypeScript satisfies operator checks an object against a type but keeps its real key names, so a typo in a key becomes a compile error.
- [TIL: The git log Pickaxe Finds the Commit That Deleted a Line](/til-git-log-pickaxe) (Oct 2026 · Original · TIL): The git log pickaxe, git log -S, lists only the commits that added or removed a piece of text. Use it to find when a line of code went missing.
- [TIL: Node --env-file Loads .env Without the dotenv Package](/til-node-env-file) (Oct 2026 · Original · TIL): Since Node 20.6 the node --env-file flag reads a .env file into process.env before your code starts. No dotenv install and no require line in the entry file.
- [TIL: git rerere Remembers Your Conflict Resolutions](/til-git-rerere) (Sep 2026 · Original · TIL): Turn on git rerere once and git records how you resolved a merge conflict, then replays that resolution when the same conflict comes back in a rebase or merge.
- [TIL: Fixing Opus 5 Jargon With One System Prompt Line](/til-opus-5-jargon-fix) (Sep 2026 · Original · TIL): Opus 5 defaults to jargon-heavy consultant-speak. One line in your system prompt fixes it.
- [The git config Defaults Worth Overriding](/git-config-defaults) (Sep 2026 · Original · Git): A few git config defaults are just wrong for modern work. These one-liners fix branch sorting, new-branch pushes, diffs and command typos.
- [fd 10.5 Is the find Replacement Worth Memorizing](/fd-find-replacement) (Aug 2026 · Original · TIL): fd 10.5.0 landed on 26 August 2026 with --ignore-parent, --exact and escape-sequence hardening. The fd find replacement flags actually worth committing to memory.
- [Node 26.8 Put Syntax Highlighting in the REPL](/node-repl-highlighting) (Aug 2026 · Original · JavaScript): Node.js 26.8 added syntax highlighting to the REPL, so the interactive prompt now colours your code as you type it. A small node repl highlighting win worth having.
- [TIL: Finding Files Fast With fd](/til-finding-files-fast-with-fd) (Aug 2026 · Original · TIL): fd is a gitignore-aware, colourful replacement for find. One command locates files by name, type, or extension, and it runs fast out of the box.
- [The Rust CLI Tools That Replaced My Coreutils](/rust-cli-replacements) (Aug 2026 · Original · TIL): An honest audit of ripgrep, fd, bat, eza, zoxide and delta as rust cli replacements for grep, find, cat, ls, cd and diff, and which ones actually stuck.
- [fzf 0.74 Made My Fuzzy Finder Fast Again](/fzf-fuzzy-finder) (Aug 2026 · Original · TIL): fzf 0.74.3 made the fuzzy finder fast again with big non-ASCII speedups, and 0.74.4 fixed an escape-sequence bug plus tmux, fish and nushell integration.
- [How to Split a Messy Git Commit Into Clean Ones](/splitting-a-git-commit) (Aug 2026 · Original · Git): Splitting a git commit into clean, reviewable pieces takes an interactive rebase, a soft reset, and git add -p. Here is the exact sequence.
- [TIL: GitHub Actions $/ Self-Reference Syntax](/til-github-actions-self-reference-syntax) (Aug 2026 · Original · TIL): Reference actions and workflows in the same repo using $/ syntax. Sibling actions match the running commit automatically, no hardcoded versions.
- [TIL: Generating Audio Waveform Images With ffmpeg](/til-ffmpeg-waveform-visualisation) (Aug 2026 · Original · TIL): ffmpeg generates a waveform PNG from any audio file. Visualise silence gaps, volume levels, and speech patterns without a DAW.
- [TIL: git history fixup replaces the autosquash dance](/git-history-fixup) (Jul 2026 · Original · TIL): Git 2.55's experimental git history fixup folds staged changes into an earlier commit in one command. I built it from source and ran it.
- [TIL: Test TTS Voices With Curl](/til-tts-voices-curl) (Jul 2026 · Original · TIL): One curl command to compare TTS voice output side by side before you write any integration code. Handy for prototyping or auditing voice quality.
- [TIL: Playing Audio From the Terminal With SoX Play](/til-sox-play-terminal-audio) (Jul 2026 · Original · TIL): play (from SoX) plays any audio file through your speakers with one command. No media player needed when you are already in the terminal.
- [TIL: Clone a voice in one API call with Speechify](/til-clone-voice-speechify-api) (Jun 2026 · Original · TIL): The Speechify API creates a cloned voice from a 10-second audio sample with a single POST, returning a voice ID that works on any speech endpoint you already use.
- [TIL: Read speech marks from the Speechify API response](/til-speech-marks-speechify-api) (Jun 2026 · Original · TIL): Every Speechify TTS response includes word-level timing data alongside the audio. Here is how to read speech marks and what you can do with them.
- [TIL: Flux natively knows when a caller finishes speaking](/til-flux-turn-detection-deepgram) (Jun 2026 · Original · Voice AI): Deepgram Flux turn detection replaces VAD and silence timeouts with model-native EndOfTurn events.
- [TIL: Encoding Files as Base64 in the Terminal](/til-base64-inline-audio) (Jun 2026 · Original · TIL): base64 encodes any file into text-safe output. Embed small audio clips or images inline in JSON payloads without hosting them somewhere.
- [TIL: Deepgram keyterm prompting for accurate transcription](/til-deepgram-keyterm-prompting) (Jun 2026 · Original · TIL): Improve transcription accuracy for specialised terminology, product names, and technical jargon using Deepgram's keyterm prompting.
- [TIL: Debugging Pipelines With the tee Command](/til-debugging-pipelines-tee) (May 2026 · Original · TIL): tee reads from stdin and writes to stdout and files at the same time. Debug complex shell pipelines and save intermediate data without breaking the chain.
- [Testing 10 languages with one macOS command](/testing-10-languages-macos-say) (May 2026 · Original · TIL): The macOS say command generates speech in ten languages. I used it to test a multilingual STT model without installing any audio tooling.
- [TIL: Testing speech-to-text with curl](/til-stt-curl) (May 2026 · Original · TIL): One curl command transcribes audio through any REST-based STT API. No SDK, no imports, just your audio file and an API key.
- [TIL: What afinfo Reveals About Your Audio Files](/til-afinfo-audio-inspection) (May 2026 · Original · TIL): afinfo prints every audio file property macOS knows about: sample rate, channels, bit depth, duration, and codec. Essential for debugging STT pipeline issues.
- [Friday fun: inspecting audio files from my terminal](/friday-fun-inspecting-audio-files-terminal) (May 2026 · Original · TIL): soxi shows audio file metadata like sample rate, duration, and channels from the command line. Inspect files before sending them to any voice API.
- [TIL: Measuring API Response Times With curl -w](/til-curl-w-response-times) (May 2026 · Original · TIL): curl -w prints DNS, connect, TLS and response times after every request, so you can profile API latency from the terminal without another tool.
- [Friday fun: bat is cat with syntax highlighting](/bat-is-cat-with-syntax-highlighting) (May 2026 · Original · TIL): bat shows file contents with syntax highlighting, line numbers, and a pager. It replaces cat with the same muscle memory and a lot more useful output.
- [TIL: ffprobe for audio file inspection](/til-ffprobe-audio-inspection) (Apr 2026 · Original · TIL): ffprobe shows sample rate, channels, duration, and codec of any audio file. Check audio format before sending it to a speech-to-text API.
- [Friday fun: generating test tones for voice AI pipelines](/friday-fun-generating-test-tones-voice-ai) (Apr 2026 · Original · TIL): sox synth generates test audio files from scratch at any sample rate and duration. No microphone needed for speech API development.
- [TIL: pv shows you what is flowing through your pipes](/til-pv-pipe-viewer) (Apr 2026 · Original · TIL): pv (Pipe Viewer) sits between two commands in a pipeline and reports how fast data is moving. It is a progress bar for pipes.
- [Friday fun: live speech to text from the terminal](/friday-fun-live-speech-to-text-terminal) (Apr 2026 · Original · TIL): Pipe rec into websocat and get live speech to text in your terminal as you talk. Two CLI tools, one WebSocket, no GUI and no upload-and-wait loop.
- [TIL: Comparing Files Side By Side With diff -y](/til-diff-y-side-by-side) (Apr 2026 · Original · TIL): diff -y prints two files side by side with differences highlighted. Spot what changed in a config file without looking at two separate tabs.
- [TIL: Testing Network Latency With ping Custom Payload Sizes](/til-ping-latency-testing) (Mar 2026 · Original · TIL): ping -s sends packets larger than the default 56 bytes. Test how your connection handles audio-sized payloads before blaming the API.
- [TIL: Running TypeScript Directly With tsx](/til-tsx-typescript-node) (Feb 2026 · Original · TIL): tsx executes TypeScript files with zero config using esbuild under the hood. Faster than ts-node and handles ESM and CJS automatically.
- [TIL: Chaining Shell Commands With && vs ; vs ||](/til-shell-chaining-operators) (Jan 2026 · Original · TIL): Chaining shell commands with && runs the next only on success, ; runs it regardless, and || runs it only on failure. Pick wrong and CI hides a broken build.
- [TIL: Finding Processes on a Port With lsof -i](/til-lsof-listening-ports) (Dec 2025 · Original · TIL): lsof -i :PORT shows which process is holding a port. End the 'what is already running on 3000' guessing game for good.
- [TIL: Reading Gzip Files Without Decompressing With zcat](/til-zcat-gzip-streaming) (Nov 2025 · Original · TIL): zcat streams a gzip file straight to stdout without writing a temp copy. Read compressed logs, CSVs, or JSON directly into your pipeline.
- [TIL: Comparing Directory Trees With diff -r](/til-diff-r-directory-comparison) (Oct 2025 · Original · TIL): diff -r compares two directories recursively, showing every file that differs. Verify that a build output matches between two branches.
- [TIL: Generating Trusted Local HTTPS Certs With mkcert](/til-mkcert-local-https) (Sep 2025 · Original · TIL): mkcert creates locally-trusted TLS certificates in one command. Your browser trusts them instantly — no more self-signed cert warnings.
- [TIL: Running TypeScript Directly With ts-node](/til-ts-node-watch-mode) (Aug 2025 · Original · TIL): ts-node compiles and executes TypeScript in memory, so quick scripts and SDK examples run with no build step and no tsc --watch loop to babysit.
- [TIL: Finding Disk Usage Per Directory With du -sh](/til-du-disk-usage) (Jul 2025 · Original · TIL): du -sh reports disk usage per directory in human-readable form, so you can find what is filling a drive without clicking through a GUI.
- [TIL: Deduplicating Lines With sort -u](/til-sort-u-deduplicate) (Jun 2025 · Original · TIL): sort -u sorts and deduplicates lines in a single pass. Clean up word lists, logs, and API response extracts without writing a throwaway script.
- [TIL: Formatting Terminal Output Into Tables With column](/til-column-terminal-tables) (May 2025 · Original · TIL): column -t aligns whitespace-separated data into clean columns. Pipe any command output through it for instantly readable tables.
- [TIL: Mirroring Sites With wget Recursive Mode](/til-wget-recursive-download) (Apr 2025 · Original · TIL): wget -r downloads an entire site recursively. Useful for offline reference copies of documentation when you are without internet.
- [TIL: Structuring Monorepos With TypeScript Project References](/til-typescript-project-references) (Mar 2025 · Original · TIL): TypeScript project references let you split a codebase into composable packages. Each reference builds independently and incremental builds get faster.
- [TIL: Speeding Up GitHub Operations With gh Aliases](/til-gh-aliases-github-workflows) (Feb 2025 · Original · TIL): gh alias set maps custom shortcuts to any gh command. Common workflows become two-word commands instead of multi-flag incantations.
- [TIL: Building JSON Payloads in Shell Scripts With jq](/til-jq-json-payloads-shell) (Jan 2025 · Original · TIL): jq builds valid JSON payloads in shell scripts straight from variables, so a missing quote or an unescaped newline never breaks a request again.
- [TIL: Checking SSL Certificate Expiry With openssl](/til-openssl-certificate-expiry) (Dec 2024 · Original · TIL): openssl connects to any TLS endpoint and prints the certificate details including expiry date. Automate cert monitoring in a cron job.
- [TIL: Benchmarking Commands With hyperfine](/til-hyperfine-benchmarking) (Nov 2024 · Original · TIL): hyperfine benchmarks a command over many runs and reports min, max, mean and standard deviation, so you can compare tools with real confidence.
- [TIL: Visualising Directory Structures With tree](/til-tree-directory-structure) (Oct 2024 · Original · TIL): tree prints a directory as a nested tree diagram. Perfect for documenting project layouts in READMEs or during onboarding walkthroughs.
- [TIL: Interactive Staging With git add -p](/til-git-add-p-interactive) (Sep 2024 · Original · TIL): git add -p shows each change hunk by hunk and asks whether to stage it. Commit only the relevant parts of a messy working tree.
- [TIL: Auto-Running Commands on File Change With entr](/til-entr-auto-commands) (Aug 2024 · Original · TIL): entr runs a command every time a watched file changes. Pipe a list of files in, get automatic re-runs out. Lighter than nodemon.
- [TIL: Running Containers Without Docker With Podman](/til-podman-docker-alternative) (Jul 2024 · Original · TIL): Podman runs OCI containers with the same CLI as Docker but daemonless and rootless by default. No Docker Desktop needed.
- [TIL: Quick Network Debugging With nc (netcat)](/til-nc-netcat-network-debugging) (Jun 2024 · Original · TIL): nc, better known as netcat, opens raw TCP connections from the terminal: check whether a port is open or send a handcrafted HTTP request.
- [TIL: Converting Markdown to PDF With pandoc](/til-pandoc-markdown-to-pdf) (May 2024 · Original · TIL): pandoc turns any Markdown file into a styled PDF with one command. Great for generating docs that non-technical stakeholders can open.
- [TIL: Using grep -P for Perl-Compatible Regex in the Terminal](/til-grep-perl-regex) (Apr 2024 · Original · TIL): grep -P gives you full Perl regex syntax — lookaheads, non-capturing groups, and character class shortcuts the basic syntax lacks.
- [TIL: Scripting WebSocket Tests With websocat](/til-websocat-websocket-testing) (Mar 2024 · Original · TIL): websocat connects to WebSocket servers from the terminal and pipes data in both directions. Better than wscat for automated testing.
- [TIL: Creating Python Packages With pyproject.toml](/til-pyproject-toml-python-packaging) (Feb 2024 · Original · TIL): pyproject.toml replaces setup.py as the standard Python packaging config. One file declares dependencies, build system, and metadata.
- [TIL: Testing npm Packages Locally With npm link](/til-npm-link-local-testing) (Jan 2024 · Original · TIL): npm link creates a symlink so your local package behaves like an installed one. Test SDK changes in a real project before publishing.
- [TIL: Managing Processes With pgrep and pkill](/til-pgrep-pkill-process-management) (Dec 2023 · Original · TIL): pgrep finds processes by name. pkill kills them. No more ps aux | grep to find and kill a runaway Node process.
- [TIL: Installing Specific Tool Versions With asdf](/til-asdf-version-manager) (Nov 2023 · Original · TIL): asdf manages multiple language runtimes from one tool. A single .tool-versions file pins Node.js, Python, and everything else per project.
- [TIL: Monitoring File Changes With inotifywait on Linux](/til-inotifywait-file-monitoring) (Oct 2023 · Original · TIL): inotifywait blocks until a file or directory changes, then exits. Use it in scripts to trigger actions when new files appear.
- [TIL: Debugging APIs With httpie](/til-httpie-api-debugging) (Sep 2023 · Original · TIL): httpie formats JSON responses, highlights syntax, and shows headers by default. One command is often clearer than curl for exploratory API work.
- [TIL: Recording Terminal Sessions as SVGs With termtosvg](/til-termtosvg-terminal-gifs) (Aug 2023 · Original · TIL): termtosvg records your terminal session and outputs an SVG file. Embeddable in docs, zoomable, and smaller than a GIF.
- [TIL: Parallel Processing in Node.js With worker_threads](/til-worker-threads-nodejs) (Jul 2023 · Original · TIL): worker_threads runs JavaScript in parallel without the overhead of child processes. Distribute CPU-heavy work across available cores.
- [TIL: Generating WAV Files at a Specific Sample Rate With SoX](/til-sox-sample-rate-wav) (Jun 2023 · Original · TIL): sox generates or converts audio to any sample rate, bit depth, and channel count. Create test fixtures that match your API's exact requirements.
- [TIL: Batch File Operations With find -exec](/til-find-exec-batch-operations) (May 2023 · Original · TIL): find -exec runs any command on every matching file. Bulk rename, convert, or delete without writing a loop or a script.
- [TIL: Merging PDF Files With pdfunite](/til-pdfunite-merge-pdfs) (Apr 2023 · Original · TIL): pdfunite combines multiple PDFs into one in a single command. No Adobe subscription, no drag-and-drop, just file paths.
- [TIL: Implementing Exponential Backoff in TypeScript](/til-exponential-backoff-typescript) (Mar 2023 · Original · TIL): A retry loop with exponential backoff and jitter absorbs transient API failures without hammering a server that is already struggling.
- [TIL: Finding Duplicate Files With fdupes](/til-fdupes-duplicate-files) (Feb 2023 · Original · TIL): fdupes scans a directory tree for duplicate files by comparing checksums. Reclaim disk space from accidental copies and repeated downloads.
- [TIL: Processing STT Word Timestamps With awk](/til-awk-stt-timestamps) (Jan 2023 · Original · TIL): awk parses word-level timestamps from STT output in one line. Extract, filter, and reformat without importing a CSV library.
- [TIL: Using set -e and set -x in Bash Scripts](/til-set-e-set-x-bash) (Dec 2022 · Original · TIL): set -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: Trimming Silence From Audio Files With SoX](/til-sox-trim-audio-silence) (Nov 2022 · Original · TIL): sox detects and removes silence from audio files automatically. Clean up recordings before processing without a GUI editor.
- [TIL: Creating Python Virtual Environments With venv](/til-python-virtual-environments-venv) (Oct 2022 · Original · TIL): python -m venv gives each project its own virtual environment, so two projects needing different library versions never fight over global packages.
- [TIL: Auto-Restarting Node.js Processes With nodemon](/til-nodemon-watch-mode) (Sep 2022 · Original · TIL): nodemon watches your source files and restarts the process on any change. No manual Ctrl-C up-arrow-enter cycle during development.
- [TIL: Parsing Command-Line Arguments With Python's argparse](/til-argparse-python-cli) (Aug 2022 · Original · TIL): argparse generates --help text, validates types, and parses positional and optional arguments. Built into Python, no third-party deps.
- [TIL: Using tmux for Persistent Terminal Sessions](/til-tmux-persistent-sessions) (Jul 2022 · Original · TIL): tmux keeps your terminal session alive when you disconnect. Reattach from anywhere — long-running processes survive SSH drops.
- [TIL: Checking File Integrity With shasum](/til-shasum-file-integrity) (Jun 2022 · Original · TIL): shasum computes a SHA hash of any file. Compare hashes before and after transfer to catch corruption — no extra tools needed.
- [TIL: Configuring pre-commit Hooks for Python and Node Repos](/til-pre-commit-hooks-python-node) (May 2022 · Original · TIL): pre-commit runs linters and formatters on every git commit. A .pre-commit-config.yaml enforces the same checks across every contributor.
- [TIL: Testing CLI Tools With pytest in Python](/til-pytest-cli-testing) (Apr 2022 · Original · TIL): pytest with subprocess or click's test runner validates CLI output, exit codes, and error messages without manual terminal checks.
- [TIL: Semantic Versioning With the semver CLI](/til-semver-cli-versioning) (Mar 2022 · Original · TIL): The semver CLI validates, compares, and increments version strings from the terminal. No more manual math on MAJOR.MINOR.PATCH.
- [TIL: Concurrent API Calls With asyncio in Python](/til-asyncio-concurrent-python) (Feb 2022 · Original · TIL): asyncio runs multiple network requests concurrently without threads. gather() collects results as they finish, cutting wall-clock time dramatically.
- [TIL: Building a CLI Tool With commander.js in Node.js](/til-commander-js-cli-node) (Jan 2022 · Original · TIL): commander.js parses flags, subcommands, and help text from a declarative config. A working CLI takes about ten lines of setup.
- [TIL: Streaming JSON Parsing With ijson for Large Responses](/til-streaming-json-ijson) (Dec 2021 · Original · TIL): ijson parses JSON as it streams in, skipping the full parse. Handles multi-gigabyte responses without running out of memory.
- [TIL: Converting Audio Formats With ffmpeg in One Command](/til-ffmpeg-audio-conversion) (Nov 2021 · Original · TIL): ffmpeg 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: Handling WebSocket Streams With the websockets Library in Python](/til-websockets-python-streaming) (Oct 2021 · Original · TIL): Python'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: Running GitHub Actions Locally With act](/til-act-github-actions-local) (Sep 2021 · Original · TIL): act runs your GitHub Actions workflows on your machine using Docker. No push-and-pray, iterate locally first.
- [TIL: Creating Tarballs With tar for Deployment Packages](/til-tar-deployment-packages) (Aug 2021 · Original · TIL): tar bundles a directory into a single file preserving permissions and structure. One command packages your entire deployable artifact.
- [TIL: Using git bisect To Find the Commit That Broke a Build](/til-git-bisect-find-breaking-commit) (Jul 2021 · Original · TIL): git 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: Redirect and Rewrite Rules With Plain _redirects Files](/til-redirect-rules-redirects-file) (Jun 2021 · Original · TIL): A _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: Profiling Node.js Build Performance With node --prof](/til-node-profiling-build-performance) (May 2021 · Original · TIL): node --prof generates a V8 tick profile of your script. Process it with --prof-process and see exactly where every millisecond went.
- [TIL: Using diff and patch for Incremental File Changes](/til-diff-patch-file-changes) (Apr 2021 · Original · TIL): diff produces a patch file describing what changed. patch applies it elsewhere. No git required for sharing small fixes between environments.
- [TIL: Validating JSON Schemas With Ajv in Node.js](/til-json-schema-validation-ajv) (Mar 2021 · Original · TIL): Ajv validates JSON payloads against a schema in milliseconds. Define your shape once and reject bad data before it reaches your logic.
- [TIL: Creating Named Pipes With mkfifo for IPC](/til-named-pipes-mkfifo) (Feb 2021 · Original · TIL): mkfifo creates a named pipe that acts like a file but connects two processes. One writes, the other reads, zero network overhead.
- [TIL: Stripping ANSI Escape Codes From Terminal Output](/til-strip-ansi-terminal-output) (Jan 2021 · Original · TIL): Coloured terminal output looks great until you pipe it to a file. The sed command strips ANSI codes cleanly, leaving plain text.
- [TIL: Testing HTTP Endpoints Locally With httpbin](/til-testing-httpbin-locally) (Dec 2020 · Original · TIL): httpbin echoes your request back as JSON, so testing a client locally shows exactly what it put on the wire. No real endpoint needed to debug.
- [TIL: Using tee To Split Command Output to File and Terminal](/til-tee-split-output) (Nov 2020 · Original · TIL): The tee command writes command output to a file while still printing it on screen. Perfect for logging a build without losing live visibility.
- [TIL: Generating QR Codes in the Terminal With qrencode](/til-qr-codes-terminal-qrencode) (Oct 2020 · Original · TIL): qrencode turns any text into a QR code in one command. Pipe it to a PNG or straight to the terminal for quick mobile tests.
- [TIL: Scheduling Recurring Tasks With node-cron](/til-node-cron-scheduling) (Sep 2020 · Original · TIL): A cron expression and a callback is all node-cron needs to run tasks on a schedule. No system cron, no external dependencies.
- [TIL: Conditional Git Hooks With core.hooksPath](/til-git-hooks-core-hookspath) (Aug 2020 · Original · TIL): Git's core.hooksPath lets each repo use its own hooks directory. No more symlinks or global hook collisions across projects.
- [TIL: Rate-Limiting API Requests With Bottleneck](/til-rate-limiting-bottleneck) (Jul 2020 · Original · TIL): Bottleneck queues API calls to stay under rate limits without losing data. Set max concurrent and min delay, then forget it.
- [TIL: Creating an HTTP Server With the Node.js http Module](/til-node-http-server) (Jun 2020 · Original · TIL): Node's built-in http module creates a working server in five lines. No Express, no dependencies, just a callback and a port.
- [TIL: Managing Environment Variables With .env Files in Node.js](/til-dotenv-nodejs) (May 2020 · Original · TIL): A .env file keeps API keys out of your NodeJS code, and the dotenv package loads them into process.env with zero configuration.
- [TIL: Testing Webhooks With curl](/til-curl-webhook-testing) (Apr 2020 · Original · TIL): A curl POST to your webhook endpoint with a JSON body simulates any provider. No dashboard, no test suite, just response codes and latency.
- [TIL: Debugging Node.js With the Built-in Inspector](/til-node-inspector-debugging) (Mar 2020 · Original · TIL): node --inspect opens Chrome DevTools for your server process. Breakpoints, heap snapshots, profiling — no console.log needed.
- [TIL: Lazy Loading Vue Router Routes With Dynamic Imports](/til-vue-router-lazy-loading) (Feb 2020 · Original · TIL): A dynamic import in your router config splits your Vue bundle per route. Pages load on demand instead of all at once.
- [TIL: Chaining Promises With Async Await in Node.js](/til-async-await-nodejs) (Jan 2020 · Original · TIL): Async await turns nested .then chains into flat readable code. One async function wrapper is all it takes to clean up any Node.js callback mess.
- [TIL: Recording Terminal Sessions With script and scriptreplay](/til-recording-terminal-sessions-script) (Dec 2019 · Original · TIL): The script command records everything in your terminal to a file. scriptreplay plays it back. Built into macOS and Linux, zero install.
- [TIL: Parsing JSON API Responses With jq in the Terminal](/til-parsing-json-jq-terminal) (Nov 2019 · Original · TIL): Pipe any JSON response into jq and get coloured, filtered, transformed output right in the terminal. No temp file, no throwaway parser.
- [TIL: Forwarding Localhost With ngrok for Webhook Dev](/til-forwarding-localhost-ngrok) (Oct 2019 · Original · TIL): One ngrok command gives any local server a public HTTPS URL. Webhook testing goes from impossible to trivial in under five seconds.
- [TIL: Testing WebSocket Connections With wscat](/til-testing-websockets-wscat) (Sep 2019 · Original · TIL): A single wscat command opens an interactive WebSocket session to any endpoint. No browser, no boilerplate, just connect and send messages.

## Search this site

`GET https://lukeocodes.dev/search.json?q=<words>` returns matching posts as JSON, each with its page URL and its markdown URL. Add `&limit=<1-50>` for more than 10. How it works: [/blog/search](https://lukeocodes.dev/blog/search.md).

```sh
curl "https://lukeocodes.dev/search.json?q=developer+relations"
```

---

© 2026 Luke Oliff. Posts live at the root of this site.

- [GitHub](https://github.com/lukeocodes)
- [LinkedIn](https://www.linkedin.com/in/lukeocodes)
- [X](https://x.com/lukeocodes)
- [Bluesky](https://bsky.app/profile/lukeocodes.dev)
- [Email](mailto:luke@lukeoliff.com)
- [RSS](/rss.xml)

## Cookies

This site sets one analytics cookie, from Google Analytics, and only in a browser that accepts the cookie banner. A client that does not run scripts sets no cookies, so there is nothing to accept or decline here.

[Cookie policy](/cookies)
