Skip to content

Instantly share code, notes, and snippets.

@jeffweiss
jeffweiss / dev-env-create.sh
Created November 9, 2012 18:13
Dev env bootstrap script
#!/bin/bash
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
# First try to load from a user install
source $HOME/.rvm/scripts/rvm
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
fi
@jeffweiss
jeffweiss / gist:4027768
Created November 6, 2012 21:40
Live Management stack
Stomp::Error::NoCurrentConnection - no current connection exists:
/opt/puppet/lib/gems/1.8/gems/stomp-1.2.3/lib/stomp/connection.rb:334:in `publish'
/opt/puppet/libexec/mcollective/mcollective/connector/stomp.rb:189:in `send'
/opt/puppet/lib/site_ruby/1.8/mcollective/client.rb:65:in `sendreq'
/opt/puppet/lib/ruby/1.8/timeout.rb:67:in `timeout'
/opt/puppet/lib/site_ruby/1.8/mcollective/client.rb:64:in `sendreq'
/opt/puppet/lib/site_ruby/1.8/mcollective/client.rb:105:in `discover'
/opt/puppet/lib/ruby/1.8/timeout.rb:67:in `timeout'
/opt/puppet/lib/site_ruby/1.8/mcollective/client.rb:104:in `discover'
/opt/puppet/lib/site_ruby/1.8/mcollective/rpc/client.rb:331:in `discover'