macOS

Change key repeat rates

defaults write -g InitialKeyRepeat -int 20
defaults write -g KeyRepeat -int 6

Be careful not to set InitialKeyRepeat too low, or you may not be able to type your password correctly.