Trick
How to calculate an ex-GST price in Australia
Divide the GST-inclusive price by 1.1 to get the ex-GST price, or divide it by 11 to get the GST. So $110 is $100 plus $10 GST.
4 min read
Tag
trick
Trick
How to calculate an ex-GST price in Australia
Divide the GST-inclusive price by 1.1 to get the ex-GST price, or divide it by 11 to get the GST. So $110 is $100 plus $10 GST.
4 min read
Dev log
How to add /blog/ to WordPress post URLs
Put /blog/ in front of every post URL with a custom permalink structure. Keep custom post types out of it with with_front, and keep old links working.
3 min read
Trick
Use the Linux command line on Windows 11 and 10 with WSL
Open PowerShell as administrator, run wsl --install and restart. You get Ubuntu with a real bash shell, running alongside Windows.
4 min read
Dev log
Git warning: LF will be replaced by CRLF, and how to fix it
Git is converting line endings, usually because core.autocrlf is true on Windows. It's harmless, and a .gitattributes file fixes it for the whole team.
5 min read
Trick
How to create and use shell aliases on macOS and Linux
An alias turns a long command into a short one, like alias ll='ls -lah'. Add it to ~/.zshrc on a Mac or ~/.bashrc on Linux to keep it for good.
4 min read
Trick
How to add a folder to your $PATH on Mac (zsh and bash)
Add export PATH="$HOME/.local/bin:$PATH" to ~/.zprofile and open a new Terminal window. Typing export on its own only changes the current window.
5 min read