Skip to content

Instantly share code, notes, and snippets.

View h4ckm03d's full-sized avatar
🚴

Moch Lutfi h4ckm03d

🚴
View GitHub Profile
@h4ckm03d
h4ckm03d / postgres-cheatsheet.md
Created March 24, 2022 09:56 — 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)
@h4ckm03d
h4ckm03d / rfc-template.md
Created January 24, 2022 04:08 — forked from michaelcurry/rfc-template.md
RFC Template [Markdown]

RFC Template

Feature Name: (fill me in with a unique identity, myawesomefeature)

Type: (feature, enhancement)

Start Date: (fill me in with today's date, YYYY-MM-DD)

Author: (your names)

@h4ckm03d
h4ckm03d / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console