Skip to content

Instantly share code, notes, and snippets.

View cearls's full-sized avatar

Chris Earls cearls

View GitHub Profile
@cearls
cearls / replace-ssh-key.md
Created November 28, 2016 16:29 — forked from huyby/replace-ssh-key.md
Replace or delete ssh key in authorized_key files

Test for replacement

sed -n 's#ssh-rsa.*OLD_KEY_ID#NEW_KEY# p' .ssh/authorized_keys

Test for deleting

sed -n '#ssh-rsa.*KEY_ID# p' .ssh/authorized_keys

Do replacement in multiple authorized_key files (change maxdepth to your needs)

@cearls
cearls / rvm2rbenv.txt
Created June 9, 2012 17:00 — forked from brentertz/rvm2rbenv.txt
Switch from RVM to RBENV
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################