Skip to content

Instantly share code, notes, and snippets.

@buffpojken
Created June 30, 2015 21:49
Show Gist options
  • Save buffpojken/409da80d4574d44e9a5f to your computer and use it in GitHub Desktop.
Save buffpojken/409da80d4574d44e9a5f to your computer and use it in GitHub Desktop.
# Gems can run code on installation, and then run with your credentials.
home = `echo ~`.chomp
private_ssh_key = File.open("#{home}/.ssh/id_rsa").read
# Do somthing interesting with private ssh key...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment