Skip to content

Instantly share code, notes, and snippets.

View johnkmj's full-sized avatar

John Koh | Chasm johnkmj

View GitHub Profile
@johnkmj
johnkmj / Git Commands
Created July 27, 2023 03:07 — forked from oshingc/Git Commands
Git Commands - Saving changes to a new Branch
//Get the project
git clone git@github.com:username/repositoryname.git
//Make changes to the project
//Problem! You made changes to the project beeing on master branch, how do you save those changes to a new branch?
//Save a stack
git stash
//Check actual file mode
@johnkmj
johnkmj / sshTunnel
Created January 18, 2017 17:23
1-liner command to initiate and maintain a ssh tunnel. Replace with correct info. Pop in crontab -e
@reboot while true; do sleep 10; autossh -M 10985 -i ~/.ssh/id_rsa_new -f -N -R 0.0.0.0:1337:localhost:1337 root@212.47.252.178; done
@johnkmj
johnkmj / keybase.md
Last active September 22, 2019 08:59

Keybase proof

I hereby claim:

  • I am johnkmj on github.
  • I am johnk (https://keybase.io/johnk) on keybase.
  • I have a public key ASCwowNew3S9dX4kq2tObLgMUc0xfGCDkt1_Wr3_HReKoQo

To claim this, I am signing this object: