Skip to content

Instantly share code, notes, and snippets.

View elygre's full-sized avatar

Eirik Lygre elygre

  • Oslo, Norway
View GitHub Profile
@garthk
garthk / profile
Created June 21, 2015 23:51
boot2docker 1.7.0 cert fix
wait4eth1() {
CNT=0
until ip a show eth1 | grep -q UP
do
[ $((CNT++)) -gt 60 ] && break || sleep 1
done
sleep 1
}
wait4eth1
@mojavelinux
mojavelinux / textile2asciidoc.rb
Last active September 13, 2019 12:43
A crude script to convert Textile documents to AsciiDoc. Some of the replacements are specific to markup that I use, but hopefully still useful.
#!/usr/bin/env ruby
if ARGV[0].nil?
$stderr.puts 'Must specify an input file'
exit 1
end
source = IO.read(ARGV[0])
title = nil