Skip to content

Instantly share code, notes, and snippets.

@kgust
Last active June 18, 2018 18:10
Show Gist options
  • Save kgust/62238eee33416526a06864ff84950999 to your computer and use it in GitHub Desktop.
Save kgust/62238eee33416526a06864ff84950999 to your computer and use it in GitHub Desktop.

Change Dock, screen capture, and software update settings

defaults write com.apple.dock autohide-time-modifier -int 0 #1
defaults write com.apple.screencapture type jpg #png|tiff|pdf
defaults write com.apple.SoftareUpdate ScheduleFrequency -int 1 #7

Encrypt/Decrypt a file using openssl

openssl enc -aes-256-cbc -e -in <infile> -out <outfile> #encrypt
openssl enc -aes-256-cbc -d -in <infile> -out <outfile> #decrypt

DNS resolvers can be added in OS X via the networksetup command:

sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4

Hide annoying folder of previous versions of GoToMeeting on macOS

chflags hidden /Applications/GoToMeeting
killall Dock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment