Luke Oliff.
2021
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
TIL: Using diff and patch for Incremental File ChangesOriginaldiff produces a patch file describing what changed. patch applies it elsewhere. No git required for sharing small fixes between environments.TIL
TIL: Validating JSON Schemas With Ajv in Node.jsOriginalAjv validates JSON payloads against a schema in milliseconds. Define your shape once and reject bad data before it reaches your logic.TIL
TIL: Creating Named Pipes With mkfifo for IPCOriginalmkfifo creates a named pipe that acts like a file but connects two processes. One writes, the other reads, zero network overhead.TIL
TIL: Stripping ANSI Escape Codes From Terminal OutputOriginalColoured terminal output looks great until you pipe it to a file. The sed command strips ANSI codes cleanly, leaving plain text.TIL
2020
TIL: Testing HTTP Endpoints Locally With httpbinOriginalhttpbin returns request data as JSON so you can see exactly what your client is sending. No real endpoint needed for debugging.TIL
TIL: Using tee To Split Command Output to File and TerminalOriginalThe tee command writes stdout to a file while still showing it on screen. Perfect for logging builds without losing visibility.TIL
TIL: Generating QR Codes in the Terminal With qrencodeOriginalqrencode 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