Skip to content

Instantly share code, notes, and snippets.

@birkir
Last active May 24, 2018 18:36
Show Gist options
  • Save birkir/c37b040c27cc1cfa8badc236a6932b50 to your computer and use it in GitHub Desktop.
Save birkir/c37b040c27cc1cfa8badc236a6932b50 to your computer and use it in GitHub Desktop.
Mac Dev Setup
# `brew cask`
### general
google-chrome
firefox
transmission
spotify
vlc
dropbox
### productivity
1password
daisydisk
harvest
zoomus
slack
### development
visual-studio-code
adobe-creative-cloud
android-studio
android-platform-tools
sketch
fastlane
java8
iterm2-beta
### docker
virtualbox
docker
docker-toolbox
---
# `brew`
apktool
cocoapods
redis
unrar
webp
imagemagick
pngquant
nvm
kubernetes-cli
postgresql
git
p7zip
python
python3
gnu-sed
gnupg
gnutls
applesimutils
wget
zsh
adns docker-compose htop libmpc npth redis
apktool docker-machine hub libpng nvm rename
applesimutils docker-machine-driver-xhyve icu4c libtasn1 openssl sqlite
autoconf findutils imagemagick libtiff optipng telnet
automake fonttools jpeg libtool p11-kit tig
avr-binutils freetype kubernetes-cli libunistring p7zip tmux
avr-gcc fzf libassuan libusb pcre unrar
avrdude gcc-arm-none-eabi libelf libusb-compat pinentry watchman
berkeley-db@4 gdbm libev libyaml pkg-config webp
boost gettext libevent little-cms2 pngquant wget
boost@1.57 git libffi mercurial postgresql xhyve
cc65 gmp libftdi0 miniupnpc protobuf xz
cocoapods gnu-sed libgcrypt mongodb python yarn
colordiff gnupg libgpg-error mpfr python3 zsh
dfu-programmer gnutls libidn2 nettle qt zsh-completions
docker go libksba node readline
---
# Disable the sound effects on boot
sudo nvram SystemAudioVolume=" "
# Set highlight color to green
#defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600"
# Always show scrollbars
#defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
# Increase window resize speed for Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
# Expand print panel by default
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
# Save to disk (not to iCloud) by default
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
# Automatically quit printer app once the print jobs complete
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false
# Reveal IP address, hostname, OS version, etc. when clicking the clock
# in the login window
sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName
# Restart automatically if the computer freezes
sudo systemsetup -setrestartfreeze on
# Never go into computer sleep mode
sudo systemsetup -setcomputersleep Off > /dev/null
# Check for software updates daily, not just once per week
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
# Disable smart quotes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
# Disable smart dashes as they’re annoying when typing code
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
# Disable local Time Machine snapshots
sudo tmutil disablelocal
# Disable hibernation (speeds up entering sleep mode)
sudo pmset -a hibernatemode 0
# Remove the sleep image file to save disk space
sudo rm -f /private/var/vm/sleepimage
# Create a zero-byte file instead…
sudo touch /private/var/vm/sleepimage
# …and make sure it can’t be rewritten
sudo chflags uchg /private/var/vm/sleepimage
# Disable “natural” (Lion-style) scrolling
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
# Increase sound quality for Bluetooth headphones/headsets
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40
# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
# Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 15
# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment