Skip to content

Instantly share code, notes, and snippets.

View DeuSsd's full-sized avatar
🏠
Working from home

Denis Ognev DeuSsd

🏠
Working from home
View GitHub Profile
@DeuSsd
DeuSsd / creating_keys.md
Created June 19, 2023 14:03 — forked from labianchin/creating_keys.md
Using OpenSSL to create keys for Mac OS X.

Creating Keys

This is a brief guide to creating a public/private key pair that can be used for OpenSSL. While the "easy" version will work, I find it convenient to generate a single PEM bundle and then export the private/public key from that as needed. This document also covers how to add and remove a password from your private key and how to make sure that keychain will automatically unlock it when you sign in.

Just make it work

Generate an ssh key-pair:

@DeuSsd
DeuSsd / postgres-cheatsheet.md
Created June 16, 2022 11:13 — 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)