Skip to content

Instantly share code, notes, and snippets.

@mingomax
Forked from jamiely/new_machine.sh
Created February 5, 2013 15:50
Show Gist options
  • Save mingomax/4715289 to your computer and use it in GitHub Desktop.
Save mingomax/4715289 to your computer and use it in GitHub Desktop.
# install xcode via App Store first! It takes awhile
# install the command-line tools as well
# install growl from App Store
# eclipse/android
open http://www.eclipse.org/downloads/packages/eclipse-classic-42/junor
open http://developer.android.com/tools/sdk/eclipse-adt.html
# homebrew
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go) # homebrew
brew install {zsh,git,wget}
brew install
{ack,tmux,colordiff,ssh-copy-id,irssi,ffmpeg,gist,imagemagick,svn,hg}
# dotfiles
cd
git clone git@github.com:jamiely/dotfiles2.git .dotfiles
cd .dotfiles
rake
# SSH Keys
ssh-keygen -t rsa -C "name@email"
# Create a local applications directory
mkdir ~/Applications
# iterm2
cd ~/Downloads
wget http://iterm2.googlecode.com/files/iTerm2_v1_0_0.zip
unzip iTerm2_v1_0_0.zip # O_O
cp -r iTerm.app ~/Applications/
# Configure zsh in iterm2 and terminal
# gitx
wget http://frim.frim.nl/GitXStable.app.zip
unzip GitXStable.app.zip
cp -r GitX.app ~/Applications/
open ~/Applications/GitX.app
# GitX > Enable Terminal Usage
# git config
# Add a git alias for pretty logs from http://www.jukie.net/bart/blog/pimping-out-git-log
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
# color everything
git config --global color.ui true
git config --global user.name "Name"
git config --global user.email "name@email"
# various browsers
open http://www.google.com/chrome
open https://tools.google.com/dlpage/chromesxs # Chrome canary
open http://www.mozilla.org/en-US/firefox/new/
# dropbox
open https://www.dropbox.com/downloading?src=index
# cyberduck
wget http://cyberduck.ch/Cyberduck-4.2.1.zip
unzip Cyberduck-4.2.1.zip
cp -r Cyberduck.app ~/Applications
# adium
open http://adium.im/
# alfred
wget http://cachefly.alfredapp.com/alfred_1.3_249.dmg
open alfred_1.3_249.dmg
# install tmux paste fix
open https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
# macvim and the janus distribution
brew install macvim
# https://github.com/carlhuda/janus
curl -Lo- https://bit.ly/janus-bootstrap | zsh
# dotfiles
## osx defaults
wget https://raw.github.com/mathiasbynens/dotfiles/master/.osx
# edit
vim .osx
# fonts
wget http://www.levien.com/type/myfonts/Inconsolata.otf
open Inconsolata.otf
wget https://dl.dropbox.com/u/4073777/Inconsolata-Powerline.otf
open Inconsolata-Powerline.otf
## click install
# the rubies
brew install {rbenv,ruby-build}
rbenv install {1.9.2-p320,1.9.3-p194,jruby-1.6.7.2}
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
rbenv global 1.9.3-p194
gem install {pry,nokogiri,librarian,rmagick}
rbenv global system # return to system shell
# R
open http://cran.r-project.org/bin/macosx/
## R Studio, sweet front-end
open http://rstudio.org/download/desktop
# do this last
brew linkapps
# github mac
wget https://central.github.com/mac/latest
unzip "mac_GitHub for Mac 53.zip"
mv GitHub.app ~/Applications/
# spotify
open http://www.spotify.com/us/
# download
unzip SpotifyInstaller.zip
open "Install Spotify.app"
# Vagrant requirements
## Virtualbox - https://www.virtualbox.org/wiki/Downloads
wget http://download.virtualbox.org/virtualbox/4.1.20/VirtualBox-4.1.20-80170-OSX.dmg
hdiutil attach VirtualBox-4.1.20-80170-OSX.dmg
open /Volumes/VirtualBox/VirtualBox.mpkg
wget http://files.vagrantup.com/packages/eb590aa3d936ac71cbf9c64cf207f148ddfc000a/Vagrant-1.0.3.dmg
hdiutil attach Vagrant-1.0.3.dmg
open /Volumes/Vagrant/Vagrant.pkg
# PHP Setup
brew tap josegonzalez/homebrew-php
## You may need to run this sudo ln -s /etc/php.ini /etc/php.ini.default and edit date.timezone = America/New_York
brew install josegonzalez/php/composer
# required on mountain lion
brew tap homebrew/dupes
# required for php54
brew install freetype
brew install php54
# MySQL (useful for running tests locally)
brew install mysql
# info
# font: Inconslata 20pt anti-alias
# theme: sunburst/muse/wombat
# Haskell
# Install from http://hackage.haskell.org/platform/mac.html
wget http://lambda.haskell.org/platform/download/2012.2.0.0/Haskell%20Platform%202012.2.0.0%2064bit.pkg
open Haskell%20Platform%202012.2.0.0%2064bit.pkg
# complete installation
# Setup tomorrow theme as default
cd ~/Downloads
git clone https://github.com/chriskempson/tomorrow-theme
echo "setup iterm2 by going to Profiles"
cp -r tomorrow-theme/textmate ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Color\ Scheme\ -\ Tomorrow
echo 'Add the following to the User preferences JSON:'
echo ' "font_face": "Inconsolata", '
echo ' "font_size": 24.0, '
echo ' "color_scheme": "Packages/Color Scheme - Tomorrow/Tomorrow-Night-Bright.tmTheme"'
mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
cp -r tomorrow-theme/Xcode\ 4/* ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
# Tomorrow-Night-Bright theme for XCode 4
wget https://raw.github.com/dbburgess/tomorrow-theme/f5ab89357c58848633110dcc303cc7a882d60ec8/Xcode%204/Tomorrow%20Night%20Bright.dvtcolortheme
# Setup tmux
cd ~/code
git clone https://github.com/erikw/tmux-powerline.git
# XCode Plugins
git clone git://github.com/JugglerShu/XVim.git
git clone git://github.com/omz/ColorSense-for-Xcode.git
git clone git://github.com/omz/MiniXcode.git
# Code Pilot http://codepilot.cc/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment