Skip to content

Instantly share code, notes, and snippets.

View tiennbITVN's full-sized avatar

Steve Nguyen tiennbITVN

  • �Fplat VN
  • Hà Nội
View GitHub Profile
@tiennbITVN
tiennbITVN / redis_cheatsheet.bash
Created August 13, 2020 11:19 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@tiennbITVN
tiennbITVN / postgres-cheatsheet.md
Created August 11, 2020 10:14 — 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)