Skip to content

Instantly share code, notes, and snippets.

View jessepinkman9900's full-sized avatar
💭
I may be slow to respond :)

jessepinkman9900

💭
I may be slow to respond :)
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@jessepinkman9900
jessepinkman9900 / Conda.md
Last active August 17, 2020 10:59
Conda Cheatsheet

CONDA CHEATSHEET

  • create env: conda create -n <name> python=3.6
  • remove env: conda env remove -n <name>
  • list of all env: conda info -e
  • activate env: conda activate <name>
  • deactivate env: conda deactivate
  • pip list equivalent: conda list -e
  • get requirements.txt: conda list -e > requirements.txt
  • get environment.yml: conda env export > environment.yml
  • install package: conda install
@jessepinkman9900
jessepinkman9900 / Postgres.md
Last active April 24, 2024 03:12
commands for Postgres with docker

Docker

  1. get the container running on port 5000 NOTE: 5000:5432 => map from 5432 to 5000 docker run --name dev-postgres -e POSTGRES_PASSWORD=pwd -p 5000:5432 -d postgres

  2. access shell for that container docker exec -it dev-postgres bash

Shell commands for postgres

  1. enter the psql command line