Skip to content

Working rules for this repo

This repo is one subject of a personal reference library (index: the library repo): <one line on what this subject holds>. These rules apply to every change made here.

Layout

  • One top-level folder per project, each with its own README.md covering what it does, how to use it, and how to test it.
  • When a folder is added, renamed or removed, update the Contents table in the root README.md in the same change.
  • A project that needs to live alone on a machine regularly moves to its own repo.

Scripts

  • Every script that changes anything has a dry-run mode (--dry-run) that prints what it would do and changes nothing.
  • The owner runs the first test of any new or changed script. Hand the script over with its dry-run command; don't run it against real systems first.

Secrets and personal details

  • Never commit passwords, API keys, tokens or credentials.
  • Site-specific values (Wi-Fi names, hostnames, IP addresses, domains, account names) are read from a git-ignored config file. Commit a config.example.* with generic placeholders next to it.
  • No money, medical or ID details anywhere in the repo.
  • No real names of people or organizations, real domains or internal hostnames anywhere: not in files, comments, file names, commit messages or branch names. Use neutral placeholders such as example.com.
  • Before the first commit of any existing material, scan it for the above and show the owner what was found. Git history is permanent.

Git

  • Documentation-only changes (Markdown, diagrams and their images; no scripts or config) go straight to main.
  • Everything else arrives on a branch for the owner to review and merge. Trivial fixes (typos, comment tweaks) may go straight to main.
  • When the owner says "merge it", merge the branch into main without asking again.
  • Before handing a branch over for review, merge the latest main into it and resolve any conflicts, so it merges cleanly. Open a pull request for it.
  • Never force-push and never rewrite history on main.
  • Commit messages say what changed and why, in plain words.

Shorthand

  • "merge it": merge the branch into main without asking again.
  • "retire it": the owner is calling a config, device or setting an old trial. Write a short note of what it was in the relevant repo, then remove it, without asking about its history.