Skip to content

Instantly share code, notes, and snippets.

View raulsperoni's full-sized avatar

raúl raulsperoni

View GitHub Profile
web:
image: wordpress
links:
- mysql
environment:
- WORDPRESS_DB_PASSWORD=myPass
working_dir: /var/www/html
volumes_from:
- data
ports:
@raulsperoni
raulsperoni / postgres-cheatsheet.md
Created February 18, 2016 20:01 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

If run with -E flag, it will describe the underlaying queries of the \ commands (cool for learning!).

Most \d commands support additional param of __schema__.name__ and accept wildcards like *.*