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
robinsmidsrod / gist:8972878
Last active Aug 29, 2015
Workaround for salt install of pip on Ubuntu 10.04 (virtualenvwrapper installation croaks on installed python-pip 0.3.1)
View gist:8972878
build-essential:
pkg.installed
python-pip:
pkg.removed
python-virtualenv:
pkg.removed
python-setuptools:
pkg.installed
View gist:9057822
node: /x:laereplan
node: /x:laereplan/x:erstatter
node: /x:laereplan/x:erstatter/*
node: /x:laereplan/x:erstatter/*/x:id
node: /x:laereplan/x:erstatter/*/x:id/text()
node: /x:laereplan/x:erstatter/*/x:kode
node: /x:laereplan/x:erstatter/*/x:kode/text()
node: /x:laereplan/x:erstatter/*/x:status
node: /x:laereplan/x:erstatter/*/x:status/text()
node: /x:laereplan/x:erstatter/*/x:tittel
@robinsmidsrod
robinsmidsrod / gist:9184193
Last active Aug 29, 2015
Output from yum deplist postgresql91-server
View gist:9184193
Loaded plugins: downloadonly, product-id, rhnplugin, security, subscription-
: manager
Updating Red Hat repositories.
Finding dependencies:
package: postgresql91-server.x86_64 9.1.10-1PGDG.rhel6
dependency: libssl.so.10()(64bit)
provider: openssl.x86_64 1.0.0-4.el6
provider: openssl.x86_64 1.0.0-4.el6_0.1
provider: openssl.x86_64 1.0.0-4.el6_0.2
provider: openssl.x86_64 1.0.0-10.el6
@robinsmidsrod
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
#!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 / gist:9370894
Created Mar 5, 2014
Pesudo-code for iPXE URI parser
View gist:9370894
cleanup(url)
split_url(url)
cleanup_decoded_url(decoded_url)
cleanup(url) {
# percent_encode all chars <= 0x20
# percent_encode all chars >= 128
}
split_url(url) {
View ipxe.pxe.tmp.map
This file has been truncated, but you can view the full file.
Archive member included because of file (symbol)
bin/blib.a(intel.dbg0.o) (obj_intel)
bin/blib.a(forcedeth.dbg0.o) (obj_forcedeth)
bin/blib.a(realtek.dbg0.o) (obj_realtek)
bin/blib.a(iobuf.o) bin/blib.a(intel.dbg0.o) (alloc_iob)
bin/blib.a(malloc.o) bin/blib.a(intel.dbg0.o) (alloc_memblock)
bin/blib.a(nvo.o) bin/blib.a(realtek.dbg0.o) (nvo_init)
bin/blib.a(random.o) bin/blib.a(forcedeth.dbg0.o) (random)
@robinsmidsrod
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
View -
execve("/bin/cp", ["cp", "-p", "bin-x86_64-linux/tap.linux.tmp", "bin-x86_64-linux/tap.linux"], [/* 29 vars */]) = 0
brk(0) = 0xf5d000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f741dde7000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=43436, ...}) = 0
mmap(NULL, 43436, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f741dddc000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
View gist:9c394fe5436782690c87
$ make bin-x86_64-linux/tap.linux
...
ar: creating bin-x86_64-linux/blib.a
[LD] bin-x86_64-linux/tap.linux.tmp
bin-x86_64-linux/blib.a(memmap_settings.o): In function `memmap_settings_fetch':
/home/robin/src/forked/ipxe/src/core/memmap_settings.c:154: undefined reference to `get_memmap'
bin-x86_64-linux/blib.a(pci.o): In function `pci_find_next':
/home/robin/src/forked/ipxe/src/drivers/bus/pci.c:231: undefined reference to `pci_num_bus'
ld: bin-x86_64-linux/tap.linux.tmp: hidden symbol `get_memmap' isn't defined
ld: final link failed: Bad value
@robinsmidsrod
robinsmidsrod / console.h
Created Jun 6, 2014
iPXE customized src/config/local/console.h
View console.h
/* Everything but DEBUG and LOG output to BIOS console */
#undef CONSOLE_PCBIOS
//#define CONSOLE_PCBIOS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_DEBUG & ~CONSOLE_USAGE_LOG )
#define CONSOLE_PCBIOS ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_LOG )
#define CONSOLE_VESAFB
/* Everything but TUI output to syslog console */
#undef CONSOLE_SYSLOG
#define CONSOLE_SYSLOG ( CONSOLE_USAGE_ALL & ~CONSOLE_USAGE_TUI )
You can’t perform that action at this time.