Skip to content

Instantly share code, notes, and snippets.

View suranig's full-sized avatar
:octocat:
I may be slow to respond.

tumiwisista suranig

:octocat:
I may be slow to respond.
View GitHub Profile
@suranig
suranig / postgres-cheatsheet.md
Created May 2, 2019 11:47 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

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)
@suranig
suranig / gitflow-breakdown.md
Created October 20, 2018 17:50 — forked from morrismatts/gitflow-breakdown.md
A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@suranig
suranig / setup.md
Created July 20, 2018 22:23 — forked from harisibrahimkv/setup.md
Virtualenv, Django & PostgreSQL setup instructions for the Django beginner level workshop.

Setup (Linux)

Virtualenv

It is always recommened to use virtualenv while you are doing development. virtualenv lets you create isolated development environments. It will help you not to mixup dependencies when working on more than one project on your machine.