Skip to content

Instantly share code, notes, and snippets.

View stapelberg's full-sized avatar

Michael Stapelberg stapelberg

View GitHub Profile
@stapelberg
stapelberg / gist:596f03ae2df0965218e5
Created January 23, 2015 08:45
keybase verification
### Keybase proof
I hereby claim:
* I am stapelberg on github.
* I am secure (https://keybase.io/secure) on keybase.
* I have a public key whose fingerprint is 424E 14D7 03E7 C6D4 3D9D 6F36 4E71 60ED 4AC8 EE1D
To claim this, I am signing this object:
// vim:ts=4:sw=4:et
#include <stdio.h>
#include <err.h>
#include <pulse/pulseaudio.h>
void sink_info_cb(pa_context *c, const pa_sink_info *info, int eol, void *userdata) {
printf("got sink info %p, eol %d\n", info, eol);
// Why do we get called with sink_info being NULL?
if (info != NULL) {
printf("sink name = %s, index %d, description %s\n", info->name, info->index, info->description);
3564 22:23:39.877457 execve("./st", ["./st"], [/* 41 vars */]) = 0
3564 22:23:39.877828 brk(0) = 0x1b96000
3564 22:23:39.877874 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
3564 22:23:39.877937 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3c8289e000
3564 22:23:39.877975 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
3564 22:23:39.878012 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
3564 22:23:39.878053 fstat(3, {st_mode=S_IFREG|0644, st_size=282476, ...}) = 0
3564 22:23:39.878082 mmap(NULL, 282476, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3c82859000
3564 22:23:39.878108 close(3) = 0
3564 22:23:39.878139 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
Downloading/unpacking askbot==0.7.50
Running setup.py (path:/tmp/pip-build-vqQ5BF/askbot/setup.py) egg_info for package askbot
warning: manifest_maker: MANIFEST.in, line 10: 'recursive-exclude' expects <dir> <pattern1> <pattern2> ...
no previously-included directories found matching 'dist'
no previously-included directories found matching 'tmp'
no previously-included directories found matching 'build'
no previously-included directories found matching 'static'
no previously-included directories found matching 'django'
@stapelberg
stapelberg / gist:861404
Created March 8, 2011 23:59
plackup example rc.d script
#!/bin/sh
#
# RaumZeitStatus rc.d script
#
# PROVIDE: raumzeitstatus
# REQUIRE:
# KEYWORD:
. /etc/rc.subr
@stapelberg
stapelberg / gist:1088965
Created July 18, 2011 09:06
jquery imagezoom bugfix
--- jquery.imageZoom.js.O 2011-03-15 13:25:54.000000000 +0100
+++ jquery.imageZoom.js 2011-07-18 11:02:12.000000000 +0200
@@ -97,6 +97,7 @@
}
// This function is run once the displayImgSrc-img has loaded (below)
+ var preload = new Image();
var preloadOnload = function () {
// The clicked-link is faded out during loading, fade it back in
clickedLink.setNotLoadingImg();
source 'https://rubygems.org'
gem 'guard'
gem 'guard-shell'
Already on 'master'
Your branch is up to date with 'origin/master'.
Already up to date.
CONFIG GRUB2 HEAD
Importing unicode...
Importing libgcrypt...
WARNING: grub-core/lib/libgcrypt-grub already exists
WARNING: grub-core/lib/libgcrypt-grub/cipher already exists
WARNING: grub-core/lib/libgcrypt-grub/mpi already exists
WARNING: grub-core/lib/libgcrypt-grub/src already exists
// Binary squashvrfy creates squashfs file system images using the gokrazy
// squashfs writer, then verifies that the resulting image yields the same
// result when mounted.
package main
import (
"bufio"
"bytes"
"compress/gzip"
"flag"
@stapelberg
stapelberg / log.txt
Created December 24, 2018 12:27
Temporarily replacing a module
~ % mkdir /tmp/apt
~ % cd /tmp/apt
/tmp/apt % cat > apt.go <<'EOT'
package main
import (
"bytes"
"log"
"github.com/stapelberg/godebiancontrol"