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:
-- take all numbers from the 3rd until the second last line, multiply each | |
-- number with the associated multiplier from the list [10,5,6,7,8,9,11,13,14,15,16,2,3,17,18,19] | |
-- and sum everything up (modulo Int32) to get the checksum. | |
-- (hint: line 11, the 9th number in the list, is the cash amount) | |
-- in haskell: | |
import Data.Int | |
checksum :: [Int32] -> Int32 | |
checksum nums = sum $ zipWith (*) nums [10,5,6,7,8,9,11,13,14,15,16,2,3,17,18,19] |
#!/bin/bash | |
# | |
# munin plugin | |
# | |
# [sensors_*] | |
# env.sensors - override default sensors program | |
# env.ignore_[temp|fan|volt|power]<n> - disable some graphs | |
set -e |
I hereby claim:
To claim this, I am signing this object:
CFLAGS=-O2 -Wall | |
all: glob-exec | |
clean: | |
rm -f glob-exec | |
.PHONY: all clean |
#!/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 |
#!/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 |
#!/usr/bin/ruby | |
# REQUIRES: | |
# * rooted android, as otherwise you can't read the applications private data | |
# * to display the qr code "qrencode" (http://fukuchi.org/works/qrencode/) | |
# and "display" from ImageMagick | |
# This script "decrypts" the token from the internal state of the | |
# Battle.net Mobile Authenticator on android application, converting | |
# it into an "otpauth" url (https://code.google.com/p/google-authenticator/wiki/KeyUriFormat) |
/* | |
compile with: | |
gcc -shared -fPIC fix_umask.c -o fix_umask.so | |
edit /usr/bin/subl to include (fix the path to fix_umask.so if necessary): | |
#!/bin/sh | |
export LD_PRELOAD=/opt/sublime_text/fix_umask.so | |
exec /opt/sublime_text/sublime_text "$@" |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- saxonb-xslt http://www.iana.org/assignments/tls-parameters/tls-parameters.xml registry-ciphers.xslt > registry-ciphers.js --> | |
<xsl:stylesheet version="2.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:iana="http://www.iana.org/assignments" | |
> | |
<xsl:output method="text" omit-xml-declaration="yes" encoding="UTF-8"/> | |
<xsl:variable name='nl'><xsl:text>
</xsl:text></xsl:variable> |
#!/bin/bash | |
# Options / Usage | |
# put this script in the same directory as your *.cabal file | |
# it will use the first line of "cabal info ." to determine the package name | |
# custom options for "cabal haddock" (cabal haddock --help, | |
# http://www.haskell.org/haddock/doc/html/invoking.html) | |
CUSTOM_OPTIONS=(--haddock-options='-q aliased') | |
# hackage server to upload to (and to search uploaded versions for) |