Skip to content

Instantly share code, notes, and snippets.

@stanlee321
Last active July 28, 2020 05:28
Show Gist options
  • Save stanlee321/ec3b21791621646c9736142d37148997 to your computer and use it in GitHub Desktop.
Save stanlee321/ec3b21791621646c9736142d37148997 to your computer and use it in GitHub Desktop.
SSH GITHUB
$ ls -al ~/.ssh+
# Generate
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# Start the ssh-agent in the background.
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
$ sudo apt-get install xclip
# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)
$ xclip -sel clip < ~/.ssh/id_rsa.pub
# Copies the contents of the id_rsa.pub file to your clipboard
# OR CAT
# Clone single branch
git clone -b my-branch [email protected]:user/myproject.git
# install crhome in centos
curl https://intoli.com/install-google-chrome.sh | bash
# NOHUP
nohup python /path/to/test.py > output.log &
#You can find the process and its process Id with this command:
ps ax | grep test.py
#If you want to stop the execution, you can kill it with the kill command:
kill PID
#It is also possible to kill the process by using pkill, but make sure you check if there is not a different script #running with the same name:
pkill -f test.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment