-
-
Save bufordtaylor/ab7383eec86092f313d8520252c95703 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 [email protected] -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