Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am grenzr on github.
  • I am rgrenz (https://keybase.io/rgrenz) on keybase.
  • I have a public key ASA1ppozYW0PJwVDSXpCStFSjADvPvLUCbYm9bQF-aQ_8go

To claim this, I am signing this object:

@grenzr
grenzr / gist:8670267
Created January 28, 2014 15:54
collector pre-packaging failure during creation of dev release
Building collector...
Final version: NOT FOUND
Dev version: NOT FOUND
Generating...
Pre-packaging...
`collector' pre-packaging failed > + set -e -x
> + cd /tmp/d20140128-393-l5v75y/d20140128-393-1pios4p/collector
> + BUNDLE_WITHOUT=development:test
> + bundle package --all
> Fetching gem metadata from https://rubygems.org/.......
@grenzr
grenzr / new-stemcell-checker.rb
Created August 8, 2013 10:10
Ultra simple Ruby script to find the latest version of a particular type of stemcell, passed in as first argument. (Requires xml-simple gem)
#!/usr/bin/env ruby
require 'open-uri'
require 'xmlsimple'
base_url = "http://bosh-jenkins-artifacts.s3.amazonaws.com"
#check_url = "?prefix=bosh-stemcell/openstack/bosh-stemcell"
check_url = "?prefix=#{ARGV[0]}"
doc = XmlSimple.xml_in(open("#{base_url}/#{check_url}").read)
latest_stemcell = doc['Contents'][doc['Contents'].length-1]['Key'][0]
print "#{base_url}/#{latest_stemcell}"
@grenzr
grenzr / gist:6068943
Last active December 20, 2015 04:09
rabbitmq warden.log
==> /var/vcap/sys/log/rabbit_node/rabbit_node.log <==
[2013-07-24 08:53:15.048611] rabbit_node_100_0 - pid=25703 tid=0d3c fid=d169 DEBUG -- RMQaaS-Node: Provision request: {"plan":"100","version":"2.8"} from _INBOX.298145f800980be9d074601af4
[2013-07-24 08:53:15.049244] rabbit_node_100_0 - pid=25703 tid=0d3c fid=d169 DEBUG -- RMQaaS-Node: Provision Request Details - plan=100, credentials=, version=2.8
==> /var/vcap/sys/log/rabbit_gateway/rabbit_gateway.log <==
[2013-07-24 08:53:15.044394] rabbit_gateway - pid=23493 tid=c017 fid=b776 DEBUG -- Provision request for label=rabbitmq-2.8, plan=100, version=2.8
[2013-07-24 08:53:15.044935] rabbit_gateway - pid=23493 tid=c017 fid=b776 DEBUG -- [RMQaaS-Provisioner] Attempting to provision instance (request={:label=>"rabbitmq-2.8", :name=>"rabbitmq-a8220", :email=>"admin", :plan=>"100", :plan_option=>{}, :version=>"2.8", :provider=>"core", :space_guid=>"d5dbf0e6-5a6f-40da-9
341-f1879d7716b8", :organization_guid=>"6d56d655-6a8c-4ba0-ba38-5a6b1ae6eef3", :unique_id=>
---
name: cf-openstack
director_uuid: a1ac183d-df5c-485b-ba3a-f4167c064fd4
releases:
- name: cf-release
version: latest
compilation:
workers: 6
travis@precise64:/vagrant$ rake cf:init_cf_cli
==> Initializing cf CLI
Setting target to http://127.0.0.1:8181... OK
target: http://127.0.0.1:8181
Authenticating... OK
There are no spaces. You may want to create one with create-space.
Creating organization myorg... OK
Switching to organization myorg... OK
There are no spaces. You may want to create one with create-space.
var
sys = require("sys"),
flow = require("../vendor/flow"),
redis = require("../vendor/redis-client");
function log(what) {
sys.log("[ext:test] " + what);
}
exports.init_extension = function (options, context) {