Bash: Retry a Command with Backoff
Retry a shell command with incremental delays for scripts that interact with unreliable services.
Snippet directory
Retry a shell command with incremental delays for scripts that interact with unreliable services.
A compact Go HTTP client pattern with timeout handling, status checks, and clear errors.
A small debounce utility for search inputs, resize handlers, and other repeated browser events.
Read a delimited file and output JSONL records with selected columns and basic type coercion.
Convert selected JSONL fields to CSV with safe escaping for commas, quotes, and newlines.
Remove duplicate JSONL records using a selected key while streaming records from input to output.
Read a large text file safely using Node.js streams and async iteration without loading the entire file into memory.
Split a JSONL file into smaller chunks by line count or approximate file size.
Filter and map JSONL records from standard input while respecting stream backpressure.
Write JSON safely by saving to a temporary file first and then replacing the destination atomically.
A small dependency-free pattern for tracking and running SQLite migrations in order.
Use keyset pagination instead of offset pagination for stable, fast database browsing.