Skip to content

Instantly share code, notes, and snippets.

@johndhancock
Last active June 7, 2017 16:25
Show Gist options
  • Save johndhancock/1807b0265cd5803622442c893e885618 to your computer and use it in GitHub Desktop.
Save johndhancock/1807b0265cd5803622442c893e885618 to your computer and use it in GitHub Desktop.
Handy terminal commands for various things.

In command line of directory desired:

Virtual Env

Creating viruatl environment

virtualenv venv

Specifying python version upon creation

virtualenv venv --python=python3

Stepping into the virtual environment

source venv/bin/activate

Exiting the virtual environment

deactivate

Postgresql

Starting up a postgres database

pg_ctl -D /usr/local/var/postgres start

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment