Sorts on the second column and keeps the first row of each group.
Author
Snippets posted by chris
grep -o prints only the matching part, which turns grep into a crude extractor.
Matches a date, optionally with a time and a zone. Deliberately strict about separators.
A one-liner that upper-cases the second field of every row, leaving the rest alone.
The Windows counterpart to du | sort | head.
Invoke-RestMethod parses the response for you, so no ConvertFrom-Json step is needed.
Define a block once, merge it into each service. Changing the base changes all of them.
Describes the shape of a payload so it can be validated before anything else touches it.
The minimum a reader needs. Dates must be RFC 822, which is the part most generators get wrong.
The order matters more than the length: what it is, how to run it, how to develop on it.
For session keys and tokens. Never reach for a password generator or a UUID for this.
A plain === leaks how much of the token matched through its timing. This does not.