Skip to content

Instantly share code, notes, and snippets.

View lathiat's full-sized avatar

Trent Lloyd lathiat

View GitHub Profile
dialmgo() {
agent=$(cd /var/lib/juju/agents; echo machine-*)
pw=$(sudo cat /var/lib/juju/agents/${agent}/agent.conf |grep statepassword |awk '{ print $2 }')
/usr/lib/juju/mongo3.2/bin/mongo --ssl --sslAllowInvalidCertificates -u ${agent} -p $pw localhost:37017/juju --authenticationDatabase admin
}
@h4cc
h4cc / gist:6387788
Created August 30, 2013 08:54
Add missing 'eunit.hrl' on Ubuntu/Debian with erlang-dev.
If you get this error:
> 'can't find include lib "eunit/include/eunit.hrl"'
even if you already installed "erlang-eunit.
Try installing 'erlang-dev':
> apt-get install erlang-dev