Skip to content

Instantly share code, notes, and snippets.

View Adekoreday's full-sized avatar
🎯
shipping code to production

Adekoreday

🎯
shipping code to production
View GitHub Profile
@Adekoreday
Adekoreday / myscript.sh
Created November 19, 2021 12:46 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@Adekoreday
Adekoreday / postgres-cheatsheet.md
Created August 10, 2019 11:05 — 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)