Skip to content

Instantly share code, notes, and snippets.

View totallytot's full-sized avatar
💭
cosmic

TotallyTot totallytot

💭
cosmic
View GitHub Profile
@totallytot
totallytot / values_pointers.go
Created September 22, 2021 12:44 — forked from josephspurrier/values_pointers.go
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
@totallytot
totallytot / cheatsheets.md
Last active January 11, 2020 08:39
Useful Cheat Sheets
@totallytot
totallytot / postgres-cheatsheet.md
Created November 27, 2019 09:28 — 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)

Keybase proof

I hereby claim:

  • I am totallytot on github.
  • I am totallytot (https://keybase.io/totallytot) on keybase.
  • I have a public key ASD2iz6AcWKLtJdNwBAAoLs7lkWm5jIT0cK34nb7-uKkOwo

To claim this, I am signing this object:

@totallytot
totallytot / README-Template.md
Created February 23, 2019 22:09 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites