More in Networking
Follow redirects and show only the headers
Networking
Traces a redirect chain to its destination without downloading the body.
Inspect a TLS certificate from the command line
Networking
Prints the subject, issuer and validity dates without opening a browser.
Which DNS records does a domain have?
Networking
dig with +short strips everything but the answer.
Call a JSON API from PowerShell
Networking
Invoke-RestMethod parses the response for you, so no ConvertFrom-Json step is needed.
Time every phase of an HTTP request
Networking
Splits DNS, connect, TLS and first byte apart, which tells you which one is actually slow.
Random picks
Throttle with a trailing call
JavaScript
Runs at most once per interval but still fires once more after the last event, so the final state is never dropped.
Responsive grid without media queries
Web & CSS
auto-fill with minmax reflows on its own, so the column count follows the container rather than a breakpoint list.
Parameterised tests in Python
Testing
One test body, many cases, and a failure that names the case that broke.
Sort and deduplicate lines by a field
Text Processing
Sorts on the second column and keeps the first row of each group.
Chunk an iterable into fixed-size batches
Python
itertools.batched on 3.12 and later; the islice version works everywhere and never materialises the whole input.
Check a malloc result in C
Systems
The allocation that nobody checks is the one that fails in production.
Which indexes is nobody using?
Databases
Lists indexes that have never been scanned, which are pure write cost. Check against a long uptime before dropping any.
Find the largest files under a directory
Shell
Sorts everything beneath the working directory by real disk usage and shows the twenty worst offenders.