Skip to content

Instantly share code, notes, and snippets.

Robin Smidsrød robinsmidsrod

Block or report user

Report or block robinsmidsrod

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
robinsmidsrod / gist:9326960
Last active Aug 29, 2015
Problematic URI parsing in iPXE, redirect2 ends up as a query param to url3, it should stay with url2
View gist:9326960
set url1 http://boot.smidsrod.lan/path1?key1=value1#frag1
set url2 http://boot.smidsrod.lan/path2?key2=value2&redirect2=${url1:uristring}#frag2
set url3 http://boot.smidsrod.lan/path3?key3=value3&redirect3=${url2:uristring}#frag3
chain ${url3} ||
Result: http://boot.smidsrod.lan/path3?key3=value3&redirect3=http%3A//boot.smidsrod.lan/path2%3Fkey2=value2&redirect2=http%3A//boot.smidsrod.lan/path1%3Fkey1=value1#frag1%23frag2%23frag3
Expected url2: http://boot.smidsrod.lan/path2?key2=value2&redirect2=http%3A%2F%2Fboot.smidsrod.lan%2Fpath1%3Fkey1%3Dvalue1%23frag1#frag2
robinsmidsrod / enchanting.txt
Last active Aug 29, 2015
Elder Scrolls Online enchanting construction and deconstruction skill increase notes
View enchanting.txt
Glyph deconstruction
3880 blue glyph from player 35-45 (average)
3104 green glyph from player 35-45 (average) x4
2817 blue glyph from player 25-35 (lesser)
2636 green glyph from player 30-40 (moderate) x2
2254 green glyph from player 25-35 (lesser) x7
1857 green glyph from player 20-30 (minor) x2
1536 green glyph from player 15-25 (slight)
991 white glyph from wild 45-50 (great) x8
robinsmidsrod / gist:948098
Created Apr 29, 2011
Booting PXELinux from another location than original TFTP/DHCP-specified location
View gist:948098
echo Booting SystemRescueCD 2.1.0 x86 for ${hostname}
# PXELinux options, see for details
set 210:string http://boot.smidsrod.lan/sysrcd-2.1.0-x86/
set 209:string isolinux.cfg
set filename ${210:string}pxelinux.0
chain ${filename} ||
echo Booting ${filename} failed, dropping to shell
briandfoy / gist:1342877
Created Nov 6, 2011
Perl regex escapes by version of their introduction
View gist:1342877
# compiled by Tom Christiansen
v1.0 \0, \0N,\0NN Match octal character up to octal 077.
v1.0 \N, \NN, \NNN Match Nth capture group (decimal) if not in charclass and that many seen, else (octal) character up to octal 377.
v4.0 \a Match the alert character (ALERT, BEL).
v5.0 \A True at the beginning of a string only, not in charclass.
v1.0 \b Match the backspace char (BACKSPACE, BS) in charclass only.
v1.0 \b True at Unicode word boundary, outside of charclass only.
v1.0 \B True when not at Unicode word boundary, not in charclass.
v4.0 \cX Match ASCII control character Control-X (\cZ, \c[, \c?, etc).
v5.6 \C Match one byte (C char) even in UTF‑8 (dangerous!), not in charclass.
rubic / salt-minion.conf
Created Jan 15, 2012
Upstart configuration file for salt-minion
View salt-minion.conf
# salt-minion.conf
description "salt-minion upstart daemon"
author "Jeff Bauer <>"
# copy this file to /etc/init
start on (net-device-up and local-filesystems)
stop on shutdown
expect fork
rubic / gist:1657182
Created Jan 22, 2012
Installing salt with apt-get and pip
View gist:1657182
apt-get -y install python-pip python-dev python-setuptools git-core
apt-get -y install libzmq1 libzmq-dev python-m2crypto
pip install PyYAML pycrypto pyzmq msgpack-python salt
View gist:2772279
# Usage: 5.14.0 | sort -u | cpanm
use strict;
use File::Find::Rule;
use JSON;
my $old = shift;
my @files = File::Find::Rule->file->name('install.json')->in("$ENV{HOME}/perl5/perlbrew/perls/perl-$old/lib/site_perl/$old");
for my $file (@files) {
robinsmidsrod / gist:2930760
Created Jun 14, 2012
Problems dealing with installing ZeroMQ on various platforms
View gist:2930760
sudo aptitude install python-software-properties
sudo add-apt-repository ppa:chris-lea/libpgm
sudo add-apt-repository ppa:chris-lea/zeromq
sudo aptitude update
sudo aptitude install uuid-dev libzmq-dev uuid libzmq1
cpan ZeroMQ
I then cloned the zguide git repo to try out some examples
git clone git://
ssh-dss AAAAB3NzaC1kc3MAAAEBAL/ga3he0R/MiWa8LM0L/i29m3v6cxv65h6vFwrR4UYkAtqW6H597YBNKwi0Egw5KUC0Cw/BaRY0rAP9IKD7BQ+uh1r8kiGDRO71qrTdXYSfZs4UWjzwN41GrFJMPu2tb4kFOZqsOgmGA9RjapgWRKUWzCgBmq36R2VeF2uf4MWFZWFCpiNv4lekahn3Vch0iWNDZXyUrAAj/iSRgYV2cdzUgmz8IzIODc5wdRBflB9M+osiL8+7/9cUoyv3SFx5uqnozSan0wR+Y4FcLWcqJ7PYvYv3MqHmdp9cd3Py+wmRza+xan+XYCOkO/K/yahVb+j3MQ9AT8KKx48Yq0iiBGsAAAAVANkbdfmZMTo1tNDT3Up0AWPpmCYbAAABADbLWxgYPl8lG7VNpDZGBOmz6djY4ZDX8lx50kL09T37wZWUCGVzKcEwozoekgTxs1hYIfki7+AsqhqlMA66A0hHCCmKYqqErbRAq6OKmdDdpjwwPfsH4ghbqRyIwoXL4uydlYfgEBeqB+a1j6UErtzKPb8thNPcMz42j9eZAg5Lu7fv5yZsxP5KtfGlBuun0trmTCDksA2D38JHY6Ktu11bMIq8++J3wNMUobl9JpVnh2BQZn2pJ4SNIUO+EhXRBDjxRVsSM1fcfnN2IgPFEFlflsutyJtwrUIg7MddcVX6yH4s0K4YMaJVRvmP7eEi6f2nnnYoXftuU/1oljwjFYoAAAEBAJA2myKoGJbeObcp7rPl+EOZz7zmHDWhJqQZYfdosiInO6bzP/Ovpysnl3db5K6IXWITq83sf5NcugL4W6XcpRBmfsp7jxVqSk6zfRdqzbm6ReY0b23jB3U4+rGzln9z8ZwsU7qRTcmVhyajtS4b+xy3BErq5+3bvmiI4IbeAyIaM22/fNEYhhBhwgUfb8/kAGjrx/mtPH5lq2/IR0wca/CKqyWbN34N7j/W7Dnkin10yqRo/98OzPJm8vNVS2YBwwOHPotBFQHr
robinsmidsrod /
Created Oct 9, 2012
Testing out the upcoming NFS support in iPXE
You can’t perform that action at this time.