Skip to content

Instantly share code, notes, and snippets.

View robinsmidsrod's full-sized avatar

Robin Smidsrød robinsmidsrod

View GitHub Profile
@robinsmidsrod
robinsmidsrod / gist:9326960
Last active August 29, 2015 13:56
Problematic URI parsing in iPXE, redirect2 ends up as a query param to url3, it should stay with url2
#!ipxe
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} ||
shell
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
robinsmidsrod / enchanting.txt
Last active August 29, 2015 14:01
Elder Scrolls Online enchanting construction and deconstruction skill increase notes
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
robinsmidsrod / gist:948098
Created April 29, 2011 09:22
Booting PXELinux from another location than original TFTP/DHCP-specified location
#!ipxe
echo
echo Booting SystemRescueCD 2.1.0 x86 for ${hostname}
# PXELinux options, see http://syslinux.zytor.com/wiki/index.php/PXELINUX 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
shell
@briandfoy
briandfoy / gist:1342877
Created November 6, 2011 13:29
Perl regex escapes by version of their introduction
# 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
rubic / salt-minion.conf
Created January 15, 2012 20:17
Upstart configuration file for salt-minion
# salt-minion.conf
description "salt-minion upstart daemon"
author "Jeff Bauer <jbauer@rubic.com>"
# copy this file to /etc/init
start on (net-device-up and local-filesystems)
stop on shutdown
expect fork
#!/usr/bin/perl
# Usage: upgrade-cpan.pl 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
robinsmidsrod / gist:2930760
Created June 14, 2012 14:42
Problems dealing with installing ZeroMQ on various platforms
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://github.com/imatix/zguide.git
@robinsmidsrod
robinsmidsrod / id_dsa.pub
Created July 3, 2012 13:52
My public SSH key
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
@vhotspur
vhotspur / helenos.ipxe
Created October 21, 2012 21:49
iPXE config fo HelenOS
#!ipxe
# Get the ISO from
# http://www.helenos.org/download
# and unpack the files in /boot/ to the directory
# where this file is placed
# (note that you have to enable more than 8 modules
# for multiboot)
kernel kernel.bin
anonymous
anonymous / gist:3962555
Created October 27, 2012 01:14
#!ipxe
kernel tftp://172.16.100.4/sw/ul/waf/hello
boot hello