Skip to content

Instantly share code, notes, and snippets.

View dr563105's full-sized avatar

Deepak Ramani dr563105

View GitHub Profile
@dr563105
dr563105 / nix-on-macos-catalina.md
Created December 17, 2021 18:41 — forked from chriselsner/nix-on-macos-catalina.md
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

@dr563105
dr563105 / postgres-cheatsheet.md
Created January 19, 2022 16:40 — 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)