Skip to content

Instantly share code, notes, and snippets.

View dezgeg's full-sized avatar

Tuomas Tynkkynen dezgeg

  • Helsinki, Finland
View GitHub Profile
let
pkgs = import ./. {};
processAttrset = attrPath: attrSet: keys: recurse:
pkgs.lib.concatMap
(attr:
let e = (builtins.tryEval attrSet.${attr});
in if !e.success
then []
else if ((e.value.recurseForDerivations or false) || (e.value.recurseForRelease or false)) && recurse
then processAttrset "${attrPath}${attr}." e.value (builtins.attrNames e.value) true
CInputSetKey(actionName: 'Left', primary: 'A', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Right', primary: 'D', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Up', primary: 'W', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Down', primary: 'S', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Throttle', primary: 'W', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Brake', primary: 'S', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Clutch', primary: 'X', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Throttle1', primary: 'None', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKey(actionName: 'Brake1', primary: 'None', secondary: '', primaryModifier: '', secondaryModifier: '')
CInputSetKe
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=310|z=-1235|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-422|z=1266|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-190|z=1213|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-87|z=1248|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-630|z=1296|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-1411|z=-526|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-473|z=-891|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-681|z=-330|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-397|z=-628|colour=Yellow}}
{{Map orb|location=Wrecked cars|title=Wrecked car|size=16|x=-141|z=-1087|colour=Yellow}}
@dezgeg
dezgeg / gist:5481592
Created April 29, 2013 13:31
Omamatkakortti Ruby.
require 'rubygems'
require 'mechanize'
require 'nokogiri'
require 'logger'
require 'json'
baseUrl = 'https://omamatkakortti.hsl.fi'
http = Mechanize.new
http.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
# http.log = Logger.new('/dev/stderr')
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
const char* syms[] = {
/* 0 */ "quux",
/* 1 */ "foo",
with_gfx=1
gfxmode=auto
locale_dir=$prefix/locale
lang=en_US
search --no-floppy --file /boot/x86_64/efi --set
prefix=($root)/boot/x86_64/grub2-efi
insmod efi_gop
This file has been truncated, but you can view the full file.
$CPATH is `/nix/store/911yazr300l9pj6hq0h217fnnscyis4w-zlib-1.2.11-dev/include'
$LIBRARY_PATH is `/nix/store/5jk3cx8ihdvn7jq1zcknrf7k6vmdvxlg-zlib-1.2.11/lib'
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/m16cs9a00znx11mqfbkmk5f3i7gyn1ca-gcc-7.3.0.tar.xz
source root is gcc-7.3.0
setting SOURCE_DATE_EPOCH to timestamp 1516870173 of file gcc-7.3.0/MD5SUMS
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
applying patch /nix/store/pz03lhak99nzyyni72m14zsjzfjvqvr8-no-sys-dirs.patch
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
ID_LIKE=archlinux
ANSI_COLOR="0;36"
HOME_URL="https://www.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
starting VDE switch for network 1
running the VM test script
machine: waiting for the X11 server
machine: running command: journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'session opened'
machine: waiting for the VM to finish booting
machine: starting vm
machine# Formatting '/tmp/nix-build-vm-test-run-gnome3.drv-0/vm-state-machine/machine.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16
machine# qemu-system-x86_64: -usbdevice tablet: '-usbdevice' is deprecated, please use '-device usb-...' instead
machine# qemu-system-x86_64: -net nic,vlan=0,model=virtio: 'vlan' is deprecated. Please use 'netdev' instead.
machine: QEMU running (pid 4788)
$CPATH is `/nix/store/mj9k7pv769a31i7k3rli57pmkgr175w8-zlib-1.2.11-dev/include'
$LIBRARY_PATH is `/nix/store/w014ln8hphb8nrjjy229194lcny95jvp-zlib-1.2.11/lib'
unpacking sources
unpacking source archive /nix/store/qzi5zql81zxp2vls8c7jkkf59hvg5ghi-gcc-6.4.0.tar.xz
source root is gcc-6.4.0
setting SOURCE_DATE_EPOCH to timestamp 1499161736 of file gcc-6.4.0/MD5SUMS
patching sources
applying patch /nix/store/k4xxs05a0y02m36sv2hdl0vrmzpk77y8-use-source-date-epoch.patch
patching file libcpp/macro.c
Hunk #1 succeeded at 356 (offset 7 lines).