M makefile .uk

Cheat sheet · 462 commands

One line to solve most of your daily problems

A curated library of commands for developers: searchable, copyable, categorized — no theory, just the form that actually works.

462 · 7 categories

Today's pick: make -j$(nproc)

Today's picks

High-reuse commands lifted straight from real day-to-day work.

bash
make -j$(nproc)

Build in parallel using every CPU core. The cheapest possible speedup for any daily build.

bash
git rebase -i HEAD~5

Interactively rewrite the last 5 commits. Always `git stash` first if your tree is dirty.

bash
find . -type f -size +50M -exec ls -lh {} +

Locate oversized files in a directory or repo — a classic first step when investigating git bloat.

bash
docker compose up -d --build --remove-orphans

Rebuild and start detached, removing services that were renamed out of the compose file.

bash
rg -n --hidden -g '!*.lock' 'TODO|FIXME'

ripgrep the whole repo for leftover work markers, skipping noisy lockfiles.

bash
tar -czf out.tgz --exclude-vcs --exclude-vcs-ignores src/

Pack source into a tarball that automatically respects .gitignore — clean handoff to teammates.