Skip to content

Instantly share code, notes, and snippets.

View anchietajunior's full-sized avatar
💭
Working Hard

José Anchieta anchietajunior

💭
Working Hard
View GitHub Profile
@anchietajunior
anchietajunior / estados-cidades.json
Created February 2, 2017 17:04 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@anchietajunior
anchietajunior / postgres-cheatsheet.md
Created October 3, 2017 01:00 — 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)
@anchietajunior
anchietajunior / zsh.md
Created November 17, 2017 18:59 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname