Install virtualenv on Ubuntu
To install virtualenv on Ubuntu, run
gunicorn
gunicorn behind Apache web server Running Python Application with gunicorn and nginx Serve a Django application using Gunicorn
gunicorn behind Apache web server
gunicorn is a python application server used to run python applications in production. This is normally run behind web servers
run same command on multiple tmux panes
If you want to run same command on multiple servers, you can use tmux synchronize-panes feature. This will be useful
tmux create new window on current directory
When you start a new window or split pane on tmux, it always start with the directory from where you
Auto Attach to tmux session on SSH
To start tmux and attach to existing connection on SSH in, edit file Add Method 2 You can use following
PostgreSQL Export table into CSV file
To export a table into CSV file, run This will save the CSV file in current directory.
Install MongoDB 4.0 on CentOS 7
To install MongoDB 4.0 (for other versions, see release note) on CentOS 7, create file Add content Install MongoDB with
Configure postfix to relay mails using Gmail
Install postfix Create file Add Save and exit editor. Run Edit postfix configuration file Find and remove At end of
Install jupyter notebook
To install jupyter notebook on Ubuntu run To start jupyter notebook, create an empty folder, change to it Now run
List SSH keys
To list all SSH keys used by ssh agent on your system, run Example To add all available ssh keys
SSH Agent forwarding with tmux
Most of the time i connect to remote virtial machine to SSH to other servers. This way i will always