#Mac OS X
Webkit, Chrome, Firefox, Sublime Text, Sequel Pro, 1Password, LiveReload, LiveReload Extensions, XQuartz, VirtualBox
#Xcode Command Line Tools
Install Xcode from the app store.
Xcode > Preferences > Downloads > Command Line Tools
#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
#Disable webkit homepage
defaults write org.webkit.nightly.WebKit StartPageDisabled -bool true
#Use current directory as default search scope in Finder
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true
#Show Status bar in Finder
defaults write com.apple.finder ShowStatusBar -bool true
#Show indicator lights for open applications in the Dock
defaults write com.apple.dock show-process-indicators -bool true
#Enable AirDrop over Ethernet and on unsupported Macs running Lion
defaults write com.apple.NetworkBrowser BrowseAllInterfaces -bool true
#Set a blazingly fast keyboard repeat rate
defaults write NSGlobalDomain KeyRepeat -int 0.02
#Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 8
#Disable disk image verification
defaults write com.apple.frameworks.diskimages skip-verify -bool true &&
defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true &&
defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
#Disable Safari’s thumbnail cache for History and Top Sites
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
#Enable Safari’s debug menu
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
#Disable the Ping sidebar in iTunes
defaults write com.apple.iTunes disablePingSidebar -bool true
#Add a context menu item for showing the Web Inspector in web views
defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
#Show the ~/Library folder
chflags nohidden ~/Library
#Disable ping dropdowns
defaults write com.apple.iTunes hide-ping-dropdown true
#Shell
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
#Homebrew
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
brew install git ack wget curl redis memcached libmemcached colordiff imagemagick icoutils rbenv ruby-build
wget https://raw.github.com/gist/2764210/94ad3b85c8f9d61ed08d6e7f7b65e98277a07c1a/.zshrc -O ~/.zshrc
Rbenv Setup Add to ~/.bash_profile or ~/.zshrc
eval '$(rbenv init -)'
export PATH="/usr/local/bin:$PATH"
sudo scutil --set HostName Work
#Git
ssh-keygen -t rsa -C "[email protected]"
#copy ssh key to github.com
cat ~/.ssh/id_rsa.pub
#test connection
ssh -T [email protected]
#set git config values
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
git config --global github.user githubusername
git config --global github.token your_token_here
git config --global core.editor "subl -w"
git config --global color.ui true
#Sublime Text
sudo mkdir -p "/usr/local/bin/" && ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" "/usr/local/bin/subl"
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'
git clone git://github.com/buymeasoda/soda-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Theme\ -\ Soda
git clone git://github.com/chriskempson/textmate-tomorrow-theme.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow
{
"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": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}
[
{ "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"} }
]
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/
git clone [email protected]:mhartl/rails_tutorial_snippets.git RailsTutorial
#Server
brew install dnsmasq
mkdir -p /usr/local/etc/ &&
echo "address=/build/127.0.0.1" >> /usr/local/etc/dnsmasq.conf &&
echo "address=/stage/192.168.10.200" >> /usr/local/etc/dnsmasq.conf &&
echo "listen-address=127.0.0.1" >> /usr/local/etc/dnsmasq.conf
sudo cp "/usr/local/Cellar/dnsmasq/2.57/homebrew.mxcl.dnsmasq.plist" "/Library/LaunchDaemons" &&
sudo launchctl load -w "/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist"
sudo -s
sudo mkdir -p /etc/resolver
sudo echo 'nameserver 127.0.0.1' > /etc/resolver/build
#flush cache
dscacheutil -flushcache
sudo dscacheutil -flushcache; sudo killall mDNSResponder
#ensure it works
scutil --dns
brew install mysql
#setup daemon
mkdir -p ~/Library/LaunchAgents && cp /usr/local/Cellar/mysql/5.5.20/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/ && 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
mysql.server start
#secure mysql
/usr/local/Cellar/mysql/5.5.20/bin/mysql_secure_installation
gem install guard spork
gem install vagrant veewee