Luke Oliff.
2021
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
TIL: Scheduling Recurring Tasks With node-cronOriginalA cron expression and a callback is all node-cron needs to run tasks on a schedule. No system cron, no external dependencies.TIL
TIL: Conditional Git Hooks With core.hooksPathOriginalGit's core.hooksPath lets each repo use its own hooks directory. No more symlinks or global hook collisions across projects.TIL
TIL: Rate-Limiting API Requests With BottleneckOriginalBottleneck queues API calls to stay under rate limits without losing data. Set max concurrent and min delay, then forget it.TIL