Blog
Try Linux distro with out downloading ISO
You can try various linux distributions with out downloading ISO. To try, go to web site https://distrotest.net Find the linux distribition from…
Creating and using virtualenv
To create a virtualenv, run virtualenv NAME_OF_VIRTUALENV On Ubuntu 18, this command will create virtualenv with Python 2.7. To create virtualenv with…
virtualenv
Install virtualenv on Ubuntu Creating and using virtualenv virtualenv is used to create isolated python environments. With python3, you can create virtualenv…
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 like nginx…
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 when you…
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 run tmux…
Auto Attach to tmux session on SSH
To start tmux and attach to existing connection on SSH in, edit file vi ~/.bashrc Add if [[ “$TMUX” == “” ]]…
PostgreSQL Export table into CSV file
To export a table into CSV file, run \copy TABLE_NAME to ‘FILE_NAME.csv’ csv header; This will save the CSV file in current…
Install MongoDB 4.0 on CentOS 7
To install MongoDB 4.0 (for other versions, see release note) on CentOS 7, create file vi /etc/yum.repos.d/mongodb-org-4.0.repo Add content [mongodb-org-4.0] name=MongoDB Repository…