Skip to content

Instantly share code, notes, and snippets.

View vrajanap's full-sized avatar

Rajan Ponnappan vrajanap

View GitHub Profile
@vrajanap
vrajanap / postgres-cheatsheet.md
Created June 29, 2017 01:20 — 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 *.*

@vrajanap
vrajanap / tmux.md
Created November 23, 2016 15:46 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a