Skip to content

Instantly share code, notes, and snippets.

@jkarmel
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save jkarmel/91118b34f6c1a9eb6922 to your computer and use it in GitHub Desktop.
Save jkarmel/91118b34f6c1a9eb6922 to your computer and use it in GitHub Desktop.
Hired OS-X Setup
#!/usr/bin/env ruby
site 'http://community.opscode.com/api/v1'
cookbook 'sprout-rbenv',
:github => 'pivotal-sprout/sprout-rbenv'
cookbook 'sprout-ruby',
:github => 'pivotal-sprout/sprout-ruby'
cookbook 'sprout-mysql',
:github => 'pivotal-sprout/sprout-mysql'
cookbook 'sprout-git',
:github => 'pivotal-sprout/sprout-git'
cookbook 'sprout-base',
:github => 'pivotal-sprout/sprout-base'
cookbook 'sprout-osx-apps',
:github => 'pivotal-sprout/sprout-osx-apps'
cookbook 'sprout-osx-settings',
:github => 'pivotal-sprout/sprout-osx-settings'
cookbook 'osx',
:github => 'pivotal-sprout/osx'
cookbook 'sprout-rubymine',
:github => 'pivotal-sprout/sprout-rubymine'
cookbook 'sprout-homebrew',
:github => 'pivotal-sprout/sprout-homebrew'
cookbook 'sprout-terminal',
:github => 'pivotal-sprout/sprout-terminal'
cookbook 'sprout-postgresql',
:github => 'pivotal-sprout/sprout-postgresql'
cookbook 'sprout-ssh',
:github => 'pivotal-sprout/sprout-ssh'
cookbook 'sprout-redis',
:github => 'pivotal-sprout/sprout-redis'
# install RVM
\curl -sSL https://get.rvm.io | bash
# Fix for http://stackoverflow.com/questions/22352838/ruby-gem-install-json-fails-on-mavericks-and-xcode-5-1-unknown-argument-mul
curl https://gist.githubusercontent.com/Paulche/9713531/raw/1e57fbb440d36ca5607d1739cc6151f373b234b6/gistfile1.txt | sudo patch /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb
# Sprout
git clone https://github.com/pivotal-sprout/sprout-wrap.git
cd sprout-wrap
sudo gem install bundler
sudo bundle install
curl https://gist.githubusercontent.com/jkarmel/91118b34f6c1a9eb6922/raw/soloistrc > soloistrc
curl https://gist.githubusercontent.com/jkarmel/91118b34f6c1a9eb6922/raw/Cheffile > Cheffile
soloist
# Add rvm to bash_profile
echo 'export PATH="$HOME/.rvm:$PATH"' >> ~/.bash_profile
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"' >> ~/.bash_profile
# Link alfred to programs installed by homebrew
brew cask alfred link
recipes:
# base (required by sprout)
- sprout-base
- sprout-base::bash_it
- sprout-base::homebrew
- sprout-homebrew
# settings
- sprout-osx-settings
- sprout-osx-settings::defaults_fast_key_repeat_rate
- sprout-osx-settings::global_environment_variables
- sprout-osx-settings::dock_preferences
- sprout-ssh::known_hosts_github
# development (general)
- sprout-base::workspace_directory
- sprout-git
- sprout-git::default_editor
- sprout-git::projects
- sprout-git::git_scripts
# development (rails)
- sprout-ruby
- sprout-postgresql
- sprout-osx-apps::imagemagick
- sprout-osx-apps::qt
- sprout-redis
# apps
- sprout-osx-apps::iterm2
- sprout-osx-apps::keycastr
- sprout-osx-apps::flycut
- sprout-osx-apps::shiftit
- sprout-osx-apps::chrome
# apps (editors)
- sprout-osx-apps::macvim
- sprout-rubymine
- sprout-homebrew
node_attributes:
git_pairs_domain: hired.com
git_pairs_authors:
- initials: nc
name: Nate Clark
shortname: nate
- initials: kb
name: Kyle Brett
shortname: kyle
git_projects:
- git@github.com:hired/hired.git
sprout:
settings:
clock_format: EEE MMM d h:mm:ss a
dock_preferences:
orientation: 'left'
auto_hide: true
clear_apps: true
tile_size: 35
magnification': false
homebrew:
formulae:
- ctags-exuberant
- ag
- chromedriver
- imagemagick
- node
- pstree
- qt
- ssh-copy-id
- tmux
- tree
- watch
- wget
casks:
- ccmenu
- firefox
- sourcetree
- github
- google-chrome
- google-drive
- google-hangouts
- skype
- textmate
- xquartz
- xscope
- rvm
- heroku-toolbelt
- slack
- alfred
- spectacle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment