Magic words:
psql -U postgres
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
\q
: Quit/Exit\c __database__
: Connect to a database\d __table__
: Show table definition including triggers
public [\w?]* (\w+)* .* |
Magic words:
psql -U postgres
Most \d
commands support additional param of __schema__.name__
and accept wildcards like *.*
\q
: Quit/Exit\c __database__
: Connect to a database\d __table__
: Show table definition including triggers# Install HomeBrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
# Gems | |
gems=( | |
lunchy | |
compass | |
cocoapods | |
) |
gg - first line | |
dG - delete all lines |
set nocompatible " Required | |
filetype off " Required | |
" --- Vundle --- | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'bling/vim-airline' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'scrooloose/nerdtree' |
processToKill=$(lsof -n -i4TCP:9999 | grep LISTEN | awk '{print $2}') | |
if [ -n "$processToKill" ]; then | |
kill $processToKill | |
fi |
zmodload zsh/zutil | |
zparseopts -A ARGUMENTS -p: | |
PORT=$ARGUMENTS[--p] | |
processToKill=$(lsof -n -i4TCP:$PORT | grep LISTEN | awk '{print $2}') | |
if [ -n "$processToKill" ]; then | |
kill $processToKill | |
printf 'Killed port: "%s"\n' "$PORT" | |
fi |
{ | |
"name": "martin", | |
"rentals": [ | |
{"movieID": "F001", "days": 3}, | |
{"movieID": "F002", "days": 1}, | |
] | |
} |