Skip to content

Instantly share code, notes, and snippets.

@developish
developish / dig.sh
Last active December 10, 2015 23:19
What are the name servers for example.com set to?
dig +short ns example.com
@developish
developish / taps-transfer.sh
Created January 12, 2013 00:02
Convert mysql database to postgres locally with taps
# Start taps server in one tab
taps server mysql://mysqluser@localhost/sourcedb tmpuser tmppass
# Create destination postgres database
createdb destinationdb
# Import into postgres database in another tab
taps pull postgres://postgresuser@localhost/destinationdb http://tmpuser:tmppass@localhost:500
Bundler 1.3.5
Ruby 1.9.3 (2013-02-22 patchlevel 392) [x86_64-linux]
Rubygems 1.8.23
GEM_HOME
Bundler settings
frozen
Set for your local app (/var/www/app/releases/20130420233758/.bundle/config): "1"
path
Set for your local app (/var/www/app/releases/20130420233758/.bundle/config): "vendor/bundle"
@developish
developish / secrets.sh
Created August 5, 2019 18:04
A script for managing an encrypted volume at ~/Secrets (Mac OS X)
#!/usr/bin/env sh
program=$(basename $0)
command=$1
help() {
echo "Usage: $program <subcommand>"
echo ""
echo "Subcommands:"
echo " create Create an encrypted volume"