Skip to content

Instantly share code, notes, and snippets.

@hiejulia
hiejulia / postgres-cheatsheet.md
Created November 25, 2017 20:40 — 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)
@hiejulia
hiejulia / wstorm-cheatsheet.md
Created July 22, 2017 17:36 — forked from tylertadej/wstorm-cheatsheet.md
WebStorm keyboard shortcuts

WebStorm keyboard shortcuts

List of helpful keyboard shortcuts for IntelliJ WebStorm 8 running on OSX
Alt+Up                Select text blocks in incrementing size
Alt+Down              Deselect text blocks in decreasing size
Shift+Shift           Search Everywhere pop-up window
@hiejulia
hiejulia / .txt
Created July 11, 2017 08:25
Delete .git
rm -dfr .git
@hiejulia
hiejulia / __readme.md
Created June 29, 2017 10:50 — forked from maxivak/__readme.md
Building Docker image with Packer and provisioning with Ansible

Building Docker image with Packer and provisioning with Ansible

Overview

Packer

  • Packer is used to build image from a base image, perform provisions and store (commit) the final image.

  • We use provisioners and Packer templates to do the actual work to create the final image.

  • We use Ansible for provisioning.

@hiejulia
hiejulia / multiple_ssh_setting.md
Created June 9, 2017 06:56 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"