Skip to content

Instantly share code, notes, and snippets.

View suhlig's full-sized avatar
😻
Happy

Steffen Uhlig suhlig

😻
Happy
View GitHub Profile
@suhlig
suhlig / keybase.md
Created May 12, 2017 18:58
Keybase proof

Keybase proof

I hereby claim:

  • I am suhlig on github.
  • I am suhlig (https://keybase.io/suhlig) on keybase.
  • I have a public key ASCmKYO26B9hxHc0EXQJzoS4a_NQLrdDiNE3J_BT40XrNQo

To claim this, I am signing this object:

@suhlig
suhlig / parse-cc-logs
Last active June 24, 2016 14:59
Parsing cloud controller logs with jq (also converts time stamps to be human-readable)
cat cloud_controller_ng.log | jq -r '{timestamp: .timestamp|todate, source, message, loc: [.file, .lineno|tostring] | join(":")} | join(" - ")'
@suhlig
suhlig / defined.rb
Created June 1, 2016 11:08
Side effect of defined?
$ pry
pry> foo
NameError: undefined local variable or method `foo' for main:Object
pry> if defined?(foo)
* bar = 1
* end
=> nil
pry> if defined?(bar)
* puts "oops"
* end