I hereby claim:
- I am stbuehler on github.
- I am stbuehler (https://keybase.io/stbuehler) on keybase.
- I have a public key whose fingerprint is C7CA 1E9E 29DC 77F5 4808 94B2 E0E7 D017 1E95 BAD7
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
if [ "${LISTEN_PID}" != $$ ]; then | |
echo >&2 "file descriptors not for us, pid not matching: '${LISTEN_PID}' != '$$'" | |
exit 255 | |
fi | |
if [ "${LISTEN_FDS}" != "1" ]; then |
CFLAGS=-O2 -Wall | |
all: glob-exec | |
clean: | |
rm -f glob-exec | |
.PHONY: all clean |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# munin plugin | |
# | |
# [sensors_*] | |
# env.sensors - override default sensors program | |
# env.ignore_[temp|fan|volt|power]<n> - disable some graphs | |
set -e |
#!/bin/bash | |
syntax() { | |
echo "$0 [options] [--] cmd..." | |
echo "Options:" | |
echo " --stdout <logfile>: append stdout to logfile" | |
echo " --stderr <logfile>: append stderr to logfile" | |
echo "Returns exit code returned by captured command" | |
exit 1 | |
} |
/* | |
Torrent Announce Info extractor | |
lists all announce urls from torrents on stdout | |
Build with ragel (http://www.complang.org/ragel/) and a c compiler: | |
ragel -T1 torrent-announce-info.rl && CFLAGS='-O2' make torrent-announce-info | |
list torrent files on stdin: | |
ls -1 /path/to/torrents/*.torrent | torrent-announce-info |
override LDFLAGS += -lssl -lpcrecpp | |
override CPPFLAGS += -O2 -Wall | |
all: torrent-sanitize | |
clean: | |
rm torrent-sanitize | |
.PHONY: all clean |
#!/bin/bash | |
IPKG=$1 | |
FILENAME=$(basename "$IPKG") | |
X=$FILENAME | |
PACKAGE=${X%%_*} | |
X=${X#*_} | |
VERSION=${X%%_*} | |
X=${X#*_} |
/* wait for "this" future to reach this point, run "inner" in background; copy result from "inner" future */ | |
Future.prototype.nest = function(inner) { | |
var succ, result, exc, wait = 2, f = this; | |
this.then(function () { | |
f.exception; | |
if (0 == --wait) { if (succ) f.result = result; else f.exception = exc; } | |
}); | |
inner.then(function (future) { | |
if (future.exception) { succ = false; exc = future.exception; } else { succ = true; result = future.result; } | |
if (0 == --wait) { if (succ) f.result = result; else f.exception = exc; } |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'tmpdir' | |
require 'json' | |
require 'fileutils' | |
require 'zlib' | |
require 'rubygems' rescue nil | |
require 'libarchive' |