Skip to content

Instantly share code, notes, and snippets.

@ericboehs
Last active October 27, 2016 16:51
Show Gist options
  • Save ericboehs/660d71fe799dc0b67a73a4342cad864c to your computer and use it in GitHub Desktop.
Save ericboehs/660d71fe799dc0b67a73a4342cad864c to your computer and use it in GitHub Desktop.
# Install services
brew update
brew install ruby memcached beanstalkd mysql redis phantomjs node
brew services start memcached
brew services start beanstalkd
brew services start mysql
brew services start redis
# Install Docker
brew tap caskroom/cask
brew cask install virtualbox
brew install docker docker-machine docker-compose
docker-machine create --driver virtualbox default
echo "eval \$(docker-machine env default)" >> ~/.bash_profile
(
cd ~/Library/LaunchAgents
curl -L https://git.io/vKh4l > com.docker.machine.default.plist
launchctl load com.docker.machine.default.plist
)
# Configure Path
echo "export PATH=\".git/safe/../../bin:.git/safe/../../vendor/bundle/bin:.git/safe/../../.bundle/bundle/bin:\$PATH\"" >> ~/.bash_profile
# Install Invoker
gem install invoker --no-ri --no-rdoc && sudo invoker setup
# Check out repository
mkdir -p ~/Code
cd ~/Code
git clone https://github.com/17hats/17hats
cd 17hats
# Install application dependecies to 17hats directory
bin/setup
# Test everything is working
rake
# On your local machine, copy your public key
cat ~/.ssh/id_rsa.pub | pbcopy
# On the remote machine you want to access, enable "Remote login"
# in Sharing.prefPane and then authorize your public key:
mkdir -p ~/.ssh && chmod 700 ~/.ssh # Make sure .ssh exists and has the correct permissions
vi ~/.ssh/authorized_keys # Paste pub key, save/exit
chmod 600 ~/.ssh/authorized_keys # Make sure authorized_keys has the correct permissions
whoami # Note username for SSHing
ssh -R 2222:localhost:22 ericboehs@box.erc.bz -N # Traverse NAT via "ssh -R"; change user@host to your own
# To connect to the remote machine from your local machine:
ssh -p 2222 user_from_whoami@localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment