AZ.dev

Developer Reference

Opinionated micro-docs. One right answer. Copy-paste ready.

Categories

Recently Added

Array reduce: sum values and transform objects
JavaScript iterates an array and accumulates a single result. The key: always return the...
Undo the last commit but keep the changes
Git Reset the last commit while keeping all changes staged and ready to re-commit....
Fix "Cannot find module" with ES modules in Node.js
Node.js Node.js ES modules require explicit file extensions in import paths. Unlike...
Run a command on every file find matches
Linux & Shell To run a command on each file matches, use with as the placeholder and a...
Find files modified within a certain time range
Linux & Shell To find files by age, use 's flag. The sign works backwards from what feels...
Get the full (absolute) path of a file
Linux & Shell Resolve any relative path to its full, absolute path: Why , Not is the common...
List all git-ignored files and folders in a repo
Git Get a flat list of every file and folder git is currently ignoring: Why This...
A storage URL builder and its static file handler must share one prefix constant
Node.js When a storage abstraction returns URLs that the app's static-file handler is...
Content-hash dedup that restores a soft-deleted row must re-run quota and limit checks
Node.js Content-hash dedup is supposed to be free: same bytes, same row, no charge. If...
Serialize per-user check-then-write flows with pg_advisory_xact_lock(hashtext(id))
Node.js When the same user can race against themselves on a check-then-write flow...