Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

New computer setup

  • a/o 2015-05-27 *

Format the drive

  1. Restart with cmd-R or cmd-D
  2. Erase drive / 3x if second-handk
  3. Reinstall MacOS

First boot

  1. Change system password.
  2. Edit System Prefs
  Security & Privacy
      disable Location services
      allow apps
      enable Filevault (or later, after 1Password)
      disable screen saver
      background: 17% grey
      turn off command keys
      disable almost everything
      set DNS to [OpenDNS](

Get online

Install OS X CLI Tools

and/or install Xcode if you want, from the App Store

xcode-select —install

Or download from Apple dev center


cf. Gist

curl -L | sh

Install Homebrew

sudo chown $USER /usr/local

brew doctor

brew update

brew update

brew install bash-completion ssh-copy-id wget

brew install legit

brew install node

npm install -g npm@latest

npm install -g gulp

npm install -g csscomb

npm install -g keybase-installer

npm install -g bower

npm install -g a11y

brew install z

brew install python

brew install coreutils

brew install vim ——with-python ——with-ruby ——with-perl 

brew install macvim ——env-std ——override-system-vim

brew install caskroom/cask/brew-cask


Run system stuff in gist

Setup writer folder and nvAlt

  • Dropbox selective sync: Writer folder
  • Download nvAlt
  • set nvAlt to use Writer folder

Download apps from App Store

Download apps from the Web

Download specific software on Dropbox

  • BBEdit - BBEdit_10.1.2.dmg
  • Automator Dispense - Install%20Automator%20Action.pkg
  • CSS Edit - CSSEdit2.6.1.dmg
  • iTunes 11.4

Download ievms

curl -s | bash

AppZap built in apps

Chess, GarageBand, Maps, iBooks, Game Center, iTunes

Downgrade iTunes

Downgrade to lowest iTunes that works (11.4) using Pacifist to install.

Firefox, Safari, Chrome

  • adblock + settings
  • stylebot + settings
  • Firefox: Sync
  • Chrome: Sync


setup Google and Fastmail accounts in BusyCal


setup Fastmail account in Postbox



brew install python

brew install coreutils

brew install vim --with-python -with-ruby --with-perl

brew install macvim --env-std --override-system-vim

pip install powerline-status


chflags nohidden ~/Library;
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2;
defaults write -g NSScrollViewRubberbanding -int 0;
defaults write ABShowDebugMenu -bool YES;
defaults write ShowDebugMenu -bool true
defaults write DUDebugMenuEnabled 1
defaults write expose-animation-duration -int 0
defaults write hide-mirror -bool true;
defaults write hide-mirror -bool true;killall Dock
defaults write pinning -string start;
defaults write DevMode -bool true
defaults write DevMode -bool true;
defaults write EmailApp Mail
defaults write EmailApp Postbox
defaults write disable-elastic-scroll -bool YES;
defaults write PowerButtonSleepsSystem -bool no
defaults write AddressesIncludeNameOnPasteboard -bool false;
defaults write MGCinematicWindowDebugForceNoRoundedCorners 1
defaults write MGCinematicWindowDebugForceNoRoundedCorners 1;
defaults write ShowFullURLInSmartSearchField -bool true
defaults write ShowRuler 0;
defaults write AppleEnableSwipeNavigateWithScrolls -bool FALSE
defaults write com.sublimetext ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain KeyRepeat -int 0;
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO
defaults write NSGlobalDomain NSWindowResizeTime .1;
killall Dock;
killall SystemUIServer;
sudo chown $USER /usr/local;
sudo defaults write NSAppSleepDisabled -bool YES;
killall Dock;
killall SystemUIServer;

not so sure about these anymore

sudo launchctl unload -w /System/Library/LaunchDaemons/;
sudo pmset -a standbydelay 43200;
sudo tmutil disablelocal;
killall Dock;
killall SystemUIServer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.