- Python 3
- Pip 3
$ brew install python3
#!/bin/bash | |
set -x | |
# This script with documentation is available at: https://gist.github.com/blazewicz/04e666ae1f25387c8b291d81b12c550c | |
## 1. install required dependencies with apt | |
apt update && apt install python3-venv python3-dev libffi-dev libssl-dev | |
## 2. create directory for docker-compose's virtualenv | |
mkdir -p /opt/local/docker-compose |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).