Skip to content

Instantly share code, notes, and snippets.

John mohnjatthews

Block or report user

Report or block mohnjatthews

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mohnjatthews
mohnjatthews / Recover Public from Private SSH Key
Last active Jan 17, 2019
This line allows you to recover your public ssh key from your private key. Assuming your private key is called `id_rsa` and you want your public key to be called `id_rsa.pub`.
View Recover Public from Private SSH Key
# This line allows you to recover your public ssh key from your private key.
# Assuming your private key is called `id_rsa` and you want your public key
# to be called `id_rsa.pub`.
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
# Your id_rsa file needs to have the correct permissions assigned to it. Run
# this line to set them.
sudo chmod 600 ~/.ssh.id_rsa
View Merge Dev branch into Master
git checkout master
git pull origin master
git merge dev
git push origin master
@mohnjatthews
mohnjatthews / Symlink default folders to Google Drive on OSX.sh
Last active Apr 5, 2018
Deletes the default folders in OSX and replaces them with Symlinks to folders in a Google Drive installation.
View Symlink default folders to Google Drive on OSX.sh
You can’t perform that action at this time.