Skip to content

Instantly share code, notes, and snippets.

@ncole458
Last active March 29, 2018 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncole458/7491e12ce8bb3b3fdbfef869e05c924b to your computer and use it in GitHub Desktop.
Save ncole458/7491e12ce8bb3b3fdbfef869e05c924b to your computer and use it in GitHub Desktop.
CLI commands
# view all running processes
ps aux
# kill a process
sudo kill <PID>
# edit SSH keys
cd ~/.ssh
nano authorized_keys
# open port for Postgres
ufw allow 5432/tcp
# activate virtualenv (why I forget who knows!)
source my_project/bin/activate
# perms on AWS env
chown -R <user> /var/www/html
chmod -R 755 /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment