Skip to content

Instantly share code, notes, and snippets.


Steffen Uhlig suhlig

  • IBM
  • Cloud
View GitHub Profile
suhlig / gist:89e1cbb183eacb33af6070669cc0eb3e
Last active Nov 1, 2017
Multi-line fenced code blocks fail in numbered lists
View gist:89e1cbb183eacb33af6070669cc0eb3e
1. This does not work:
$ some command
$ some other command
1. This, however, does work fine (note the alignment of 'This' with the block using an extra space):

Freifunk is Down

Log on

  1. Connect the C.H.I.P. via USB to a Mac and execute screen /dev/tty.usbmodem*. It will bring up a serial console (via USB).
  2. Log on (you may have to press Enter before that, so that the login prompt appears)
  3. When done, exit with Control-a, Control-d (where Control-a is the prefix).

Check the WiFi connection

suhlig /
Created May 12, 2017
Keybase proof

Keybase proof

I hereby claim:

  • I am suhlig on github.
  • I am suhlig ( on keybase.
  • I have a public key ASCmKYO26B9hxHc0EXQJzoS4a_NQLrdDiNE3J_BT40XrNQo

To claim this, I am signing this object:

suhlig / parse-cc-logs
Last active Jun 24, 2016
Parsing cloud controller logs with jq (also converts time stamps to be human-readable)
View parse-cc-logs
cat cloud_controller_ng.log | jq -r '{timestamp: .timestamp|todate, source, message, loc: [.file, .lineno|tostring] | join(":")} | join(" - ")'
suhlig / defined.rb
Created Jun 1, 2016
Side effect of defined?
View defined.rb
$ 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