Skip to content

Instantly share code, notes, and snippets.

View mlsaito's full-sized avatar

Makoto Saito mlsaito

View GitHub Profile
@mlsaito
mlsaito / kubectl-multi-version-brews.md
Created June 10, 2019 01:41 — forked from rdump/kubectl-multi-version-brews.md
kubectl multi-version brews

kubectl multi-version brews

We need to run multiple versions of kubectl for compatibility with various clusters.

It's a bit easier to get and use multiple versions of kubectl using Homebrew than it is using Macports.

With brew, it's simple to:

  • Install a bunch of versions of kubectl (in the kubernetes-cli Formula)
  • Switch between them as needed
@mlsaito
mlsaito / postgres-cheatsheet.md
Created November 5, 2018 06:21 — 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)