Skip to content

Instantly share code, notes, and snippets.

@tjhanley
Last active August 29, 2015 14:04
Show Gist options
  • Save tjhanley/67d44b4528354d93ecb9 to your computer and use it in GitHub Desktop.
Save tjhanley/67d44b4528354d93ecb9 to your computer and use it in GitHub Desktop.
New Engineer Setup

What is this?

The goal of this is to have a script so new hires or new machines to get up and running real quick like.

How do I use it?

  • Install XCode from Mac App Store
  • Install Commandline Tools from Xcode> Open Developer Tool> More Developer Tools
  • Install Postgres
    • if you use postgres app use this command to install the gem
    • gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.3/bin/pg_config . –
  • rvm install 2.1.2
  • Simple... run this in your terminal
# install homebrew first
$> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 
$> curl https://gist.githubusercontent.com/tjhanley/67d44b4528354d93ecb9/raw/setup.sh | sh
echo "welcome :)"
# install git
echo "installing git"
brew install git
# install qt
echo "installing qt"
bre install qt
#echo "setting up your git config"
#read -p "what is your full name?" full_name
#git config --global color.ui true
#git config --global user.name $full_name
#read -p "what is your email address?" email_address
#git config --global user.email $email_address
#echo "generating ssh key"
#ssh-keygen -t rsa -C $email_address
# install rvm
echo "installing rvm"
curl -sSL https://get.rvm.io | bash -s stable
# install ruby 2.1.2
#echo "installing ruby 2.1.2"
#rvm install 2.1.2
# installing memcached
echo "installing memcached"
brew install memcached
# installing redis
echo "installing redis"
brew install redis
mkdir -p ~/Library/LaunchAgents
cp -v /usr/local/Cellar/redis/*/*plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
# installing pow
echo "installing pow"
curl get.pow.cx | sh
echo "you should be able to add your ssh key to your github handle now."
echo "Setup Github Flow: http://datasift.github.io/gitflow/TheHubFlowTools.html"
echo "and get cloning :)"
@BrainScraps
Copy link

I think the major breakage happened when the script continued running without the Command Line Tools being finished.

Press any key when the installation has completed.

I don't recall going back to the command line to re-initialize the script - so maybe that's what made all of the subsequent stuff start breaking.

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