Skip to content

Instantly share code, notes, and snippets.

View manigandand's full-sized avatar
👨‍💻
Go, MongoDB, NodeJS, Kubernetes

Manigandan Dharmalingam manigandand

👨‍💻
Go, MongoDB, NodeJS, Kubernetes
View GitHub Profile

Create a secrets file:

touch ~/.secret

Make sure it looks like this:

#!/bin/bash
@manigandand
manigandand / postgres-cheatsheet.md
Created August 1, 2018 14:04 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h):

  • -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)
@manigandand
manigandand / limitConcurrentGoroutines.go
Created March 29, 2018 12:37 — forked from AntoineAugusti/limitConcurrentGoroutines.go
Limit the maximum number of goroutines running at the same time
package main
import (
"flag"
"fmt"
"time"
)
// Fake a long and difficult work.
func DoWork() {