Skip to content

Instantly share code, notes, and snippets.

@lhm
lhm / output.txt
Created May 9, 2016 13:06
inifile quoting
File contents:
[one]
key = value; with semicolon
quoted = "quoted value; with semicolon"
escaped = value\; with escaped semicolon
next = value
Parsed contents:
{"key"=>"value", "quoted"=>"quoted value; with semicolon", "escaped"=>"valuenext = value"}
@lhm
lhm / version-info-node-npm
Created July 23, 2014 17:18
phantomas crash system info
vagrant@vagrant-ubuntu-trusty-64:~$ node -v
v0.10.29
vagrant@vagrant-ubuntu-trusty-64:~$ npm -v
2.0.0-alpha-5
vagrant@vagrant-ubuntu-trusty-64:~$ node_modules/.bin/phantomas -V
phantomas v1.4.0
vagrant@vagrant-ubuntu-trusty-64:~$ npm list
/home/vagrant
└─┬ phantomas@1.4.0
├─┬ analyze-css@0.4.0
@lhm
lhm / journalctl-output
Created June 2, 2014 13:41
journalctl output during start of geard rockmongo example
Jun 02 13:34:47 localhost.localdomain sudo[1442]: vagrant : TTY=pts/0 ; PWD=/vagrant/src/github.com/openshift/geard ; USER=root ; COMMAND=/bin/gear deploy rockmongo_mongo.json
Jun 02 13:34:47 localhost.localdomain systemd[1]: Reloading.
Jun 02 13:34:47 localhost.localdomain systemd[1]: [/var/lib/containers/slices/container-small.slice:9] Failed to load slice unit container. Ignoring.
Jun 02 13:34:47 localhost.localdomain systemd[1]: Reloading.
Jun 02 13:34:47 localhost.localdomain systemd[1]: [/var/lib/containers/slices/container-small.slice:9] Failed to load slice unit container. Ignoring.
Jun 02 13:34:47 localhost.localdomain systemd[1]: Starting Container rockmongo-1...
Jun 02 13:34:47 localhost.localdomain docker[526]: 2014/06/02 13:34:47 GET /v1.10/containers/rockmongo-1-data/json
Jun 02 13:34:47 localhost.localdomain docker[526]: [/var/lib/docker|e86c79ae] +job inspect(rockmongo-1-data, container)
Jun 02 13:34:47 localhost.localdomain docker[526]: [/var/lib/docker|e86c79ae] -job inspect(rockmongo-1-data
@lhm
lhm / journalctl-out.txt
Created May 10, 2014 09:31
journalctl output when running the geard rockmongo example
Mai 10 08:38:08 localhost.localdomain sudo[1061]: vagrant : TTY=pts/0 ; PWD=/home/vagrant ; USER=root ; COMMAND=/bin/gear deploy rockmongo_mongo.json
Mai 10 08:38:08 localhost.localdomain systemd[1]: Starting Container rockmongo-1...
Mai 10 08:38:08 localhost.localdomain systemd[1]: Starting Container mongodb-1...
Mai 10 08:38:08 localhost.localdomain docker[574]: 2014/05/10 08:38:08 GET /v1.10/containers/rockmongo-1-data/json
Mai 10 08:38:08 localhost.localdomain docker[574]: [/var/lib/docker|bd1b9404] +job inspect(rockmongo-1-data, container)
Mai 10 08:38:08 localhost.localdomain docker[574]: [/var/lib/docker|bd1b9404] -job inspect(rockmongo-1-data, container) = OK (0)
Mai 10 08:38:08 localhost.localdomain sh[1068]: Reusing 3361cfe5c86497f0922690989b7f0f16c7c782c41c43c37d493ac5ec245a940c
Mai 10 08:38:08 localhost.localdomain docker[574]: 2014/05/10 08:38:08 DELETE /v1.10/containers/rockmongo-1
Mai 10 08:38:08 localhost.localdomain docker[574]: [/var/lib/docker|bd1b9404] +job container_delete(rockmongo-1)
Ma
@lhm
lhm / 0001-Updated-Hash-constructor_spec-to-test-for-method-vis.patch
Created June 8, 2011 13:50
ruby spec and rubinius patch to allow object as hash key with protected hash method
From 510cbee3d1414cd4c5318ac135250e2e726bb593 Mon Sep 17 00:00:00 2001
From: Lars Henrik Mai <lars.mai@kontinui.de>
Date: Wed, 8 Jun 2011 14:29:37 +0200
Subject: [PATCH 1/2] Updated Hash constructor_spec to test for method visibility of hash
method when a key is an object
---
spec/ruby/core/hash/constructor_spec.rb | 9 +++++++++
spec/ruby/core/hash/fixtures/classes.rb | 6 ++++++
2 files changed, 15 insertions(+), 0 deletions(-)