How to change the default initial branch for new Git repos

TLDR: - Use git config --global init.defaultBranch main to change the default initial branch to main

How to put \n in YAML

TLDR: - Use double quotes if you want to \n to be treated as a newline e.g. message: "hello\nworld"

Run Python 2 with the -3 Flag To Detect Compatibility Issues

TLDR: Use python -3 to see warnings about compatibility issues with your Python 2 code.

How to Run the Hugo Development Server on a Chromebook

TLDR: - Use hugo server -D -p 8080 to listen on port 8080, then open http://localhost:8080.

How to add an SSH Key to the Agent for a Limited Time

TLDR: Use the -t flag to limit the time the agent will keep the key, e.g. ssh-add -t 1h

How to Set the Fill Width In Emacs