Skip to content

Instantly share code, notes, and snippets.

@td0
Created August 17, 2016 10:24
Show Gist options
  • Save td0/ce9e2b6aea56ef57860e7325625e1245 to your computer and use it in GitHub Desktop.
Save td0/ce9e2b6aea56ef57860e7325625e1245 to your computer and use it in GitHub Desktop.
OS X El Capitan setup
#!/bin/sh
# Command Line Tools
xcode-select --install
# Sudo
sudo -v
while true; do sudo -n true; sleep 60; kill -0 $$ || exit; done 2>/dev/null &
# Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew tap homebrew/dupes
brew tap homebrew/homebrew-php
brew tap homebrew/versions
brew install caskroom/cask/brew-cask
brew tap caskroom/fonts
brew tap caskroom/versions
brew update
# DNSmasq
brew install dnsmasq
sudo cp /usr/local/opt/dnsmasq/*.plist /Library/LaunchDaemons
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
sudo mkdir /etc/resolver
echo "nameserver 127.0.0.1" > /etc/resolver/dev
# Git
brew install git
# Fonts
brew cask install font-droid-sans-mono
brew cask install font-open-sans
brew cask install font-source-code-pro
# Mackup
brew install mackup
# MariaDB
brew install mariadb
mysql.server start
mysql_secure_installation
mysql.server stop
# Nginx
brew install nginx --with-gunzip --with-passenger
# NodeJS
brew install nvm
mkdir ~/.nvm
cp $(brew --prefix nvm)/nvm-exec ~/.nvm/
nvm install stable
nvm alias default stable
# PHP
brew install php56 --with-fpm --with-homebrew-curl --with-imap --without-apache --with-debug
brew install php56-mcrypt
# Quicklook
brew cask install qlcolorcode
brew cask install qlmarkdown
brew cask install qlstephen
brew cask install quicklook-json
brew cask install suspicious-package
# Utils
brew install watch
# Zsh
brew install zsh
chsh -s /bin/zsh
# Apps
brew cask install --appdir="/Applications" atom
brew cask install --appdir="/Applications" dropbox
brew cask install --appdir="/Applications" evernote
brew cask install --appdir="/Applications" github-desktop
brew cask install --appdir="/Applications" google-chrome
brew cask install --appdir="/Applications" robomongo
brew cask install --appdir="/Applications" sequel-pro
brew cask install --appdir="/Applications" sketch
brew cask install --appdir="/Applications" things
brew cleanup --force
# -----------------------------------------------------------------------------
# Install from Appstore
# 1Password (homebrew version cannot use icloud sync)
# Numbers
# Pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment