Skip to content

Instantly share code, notes, and snippets.

@pranavbhargava
Forked from kevinelliott/osx-10.9-setup.md
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save pranavbhargava/39c77e7a446aaa1d6aeb to your computer and use it in GitHub Desktop.

Select an option

Save pranavbhargava/39c77e7a446aaa1d6aeb to your computer and use it in GitHub Desktop.

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

Install from Third-Party Websites

Fonts

Mensch coding font

#Xcode Command Line Tools

Xcode > Preferences > Downloads > Command Line Tools

#Homebrew

Install Homebrew

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install Homebrew extension Cask

brew install caskroom/cask/brew-cask

Install common applications via Homebrew

Databases are installed later.

brew install ack autojump automake colordiff curl git git-flow \
             hub icoutils imagemagick libmemcached memcached openssl ossp-uuid qt \
             readline tmux wget

Install applications via Homebrew Cask

#brew cask install anvil
brew cask install atom
#brew cask install authy-bluetooth
brew cask install awareness
brew cask install github
brew cask install google-chrome
brew cask install iterm2
brew cask install sidestep
brew cask install spotify
brew cask install vagrant
brew cask install vagrant-manager
brew cask install virtualbox

#RVM \curl -sSL https://get.rvm.io | bash -s stable --ruby

#Shell

Install custom .dotfiles

git clone [email protected]:pranavbhargava/.dotfiles.git ~/.dotfiles
cd ~/.dotfiles
script/bootstrap

Allow sudo access, so that dont have to enter password again and again(Caution:Only do it if you are pretty sure no one else accesses your system or you leave your machine unattended. sudo vim /etc/sudoers
You'll be prompted for your password, enter it accordingly and press ENTER. At this point we're looking at the contents of /etc/sudeors.

Remove the comment from the following line

Same thing without a password

%wheel ALL=(ALL) NOPASSWD: ALL

sudo dscl . append /Groups/wheel GroupMembership {{username}}

OS X Preferences

#Git

Setup Github

ssh-keygen -t rsa -C "[email protected]"

# Copy ssh key to github.com
subl ~/.ssh/id_rsa.pub

# Test connection
ssh -T [email protected]

# Set git config values
git config --global user.name "Pranav Bhargava"
git config --global user.email "[email protected]"
git config --global github.user pranavbhargava
git config --global github.token your_token_here

git config --global core.editor "subl -w"
git config --global color.ui true

Sublime Text

Install Package Control

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'

Install Packages

BracketHighlighter CoffeeScriptHaml

Install Soda Theme

git clone git://github.com/buymeasoda/soda-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Theme\ -\ Soda

Install Tomorrow Theme

git clone git://github.com/chriskempson/textmate-tomorrow-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow

Settings

Sublime Text > Preferences > Settings - User

{
    "close_windows_when_empty": true,
    "color_scheme": "Packages/Color Scheme - Tomorrow/Tomorrow-Night-Eighties.tmTheme",
    "draw_indent_guides": false,
    "font_face": "Mensch",
    "font_size": 18,
    "highlight_modified_tabs": true,
    "show_tab_close_buttons": false,
    "tab_size": 2,
    "spell_check": false,
    "theme": "Soda Light.sublime-theme",
    "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}

Key Bindings

[
	{ "keys": ["super+b"], "command": "expand_selection", "args": {"to": "brackets"} },
	{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} },
	{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} }
]

Snippets

git clone [email protected]:bytestudios/sublime-snippets.git "/Users/Joel/Library/Application Support/Sublime Text 2/Packages/Byte"

Server

Docker

brew install docker boot2docker
boot2docker init
boot2docker up
$(boot2docker shellinit 2> /dev/null)

#Ubuntu (http://dockerfile.github.io/#/ubuntu)
docker build -t="dockerfile/ubuntu" github.com/dockerfile/ubuntu
#Mongodb
docker build -t="dockerfile/mongodb" github.com/dockerfile/mongodb

MySQL

brew install mysql
brew pin mysql

MySQL Settings

# Copy launch agent into place
mkdir -p ~/Library/LaunchAgents && cp /usr/local/Cellar/mysql/VERSION/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/

# Edit launch agent and set both keepalive and launch at startup to false
vi ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

# Inject launch agent
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

# Set up databases to run as your user account
unset TMPDIR && mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

# Start mysql
start mysql

# Secure mysql
/usr/local/Cellar/mysql/VERSION/bin/mysql_secure_installation

Ruby Gems

aww yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment