This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
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)#!/bin/bash | |
# Assumes using nats CLI from https://github.com/soutenniza/nats/releases | |
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
cd $DIR/.. | |
bosh_target=$(cat .bosh_config | yaml2json | jq -r ".target") | |
manifest=$(cat .bosh_config | yaml2json | jq -r ".deployment[\"$bosh_target\"]") | |
mbus=$(cat $manifest | yaml2json | jq -r '.properties.nats | "nats://\(.user):\(.password)@\(.address):\(.port)"') |
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'optparse' | |
options = { | |
target: 'local' | |
} | |
optparse = OptionParser.new do |opt| |
#!/usr/bin/env bash | |
# Resizing a vagrant centos disk... the hard way | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
set -o xtrace | |
vagrant up |