For when you want to figure out how to apply some macOS preference from the command line, without Googling for hours for out-of-date defaults commands:

$ defaults read | pbcopy
# make changes in System Preferences.app
$ diff -u -F '^ "' <(pbpaste) <(defaults read)

Source: Filippo Valsorda on Twitter