Skip to content

Instantly share code, notes, and snippets.

View rayshan's full-sized avatar
🕵️‍♀️
Inspecting stocks...

Ray Shan rayshan

🕵️‍♀️
Inspecting stocks...
View GitHub Profile
@rayshan
rayshan / travis-ci-script.sh
Last active December 22, 2015 09:25 — forked from kzap/gist:5819745
mkdir ~/travis-ci-key && cd ~/travis-ci-key
# generate your private key
ssh-keygen -t rsa -f travis-ci-key
# put the public key on the server you will be connecting to
cat travis-ci-key.pub | ssh user@123.45.56.78 "cat >> ~/.ssh/authorized_keys"
# generate the password/secret you will store encrypted in the .travis.yml and use to encrypt your private key
cat /dev/urandom | head -c 10000 | openssl sha1 > ./secret