Skip to content

Instantly share code, notes, and snippets.

View reissmann's full-sized avatar
🐳
Still alive

Sven Reissmann reissmann

🐳
Still alive
View GitHub Profile
#!/usr/bin/ash
run_hook() {
modprobe -a -q dm-crypt >/dev/null 2>&1
[ "${quiet}" = "y" ] && CSQUIET=">/dev/null"
# Get keyfile if specified
ckeyfile="/crypto_keyfile.bin"
if [ -n "$cryptkey" ]; then
IFS=: read ckdev ckarg1 ckarg2 <<EOF
ISC License
Copyright (c) ''[year(s)]'', ''[copyright holder]''
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
<?php
/*
* refresh the number of active nodes in the freifunk fulda community.
* the node information is gathered from the ffmap nodes.json file and
* written to the freifunk.net API file.
*/
$NODELIST = 'http://map.freifunk-fulda.de/nodes.json';
$APIFILE = '/path/to/FreifunkFulda-api.json';

There are some tests ripped out from git://repo.or.cz/ltp-debian.git/testcases/open_posix_testsuite/conformance/interfaces and made self-containing. They demonstrate and can be used to test the POSIX AIO interface for asynchronous I/O and formerly file IO.

Build with a c compiler (for instance clang or cc):

cc -o aio_read-test aio_read-test.c && ./aio_read-test

Note: Contrary to popular belief, it has been tested and confirmed to actually be asynchronous on Darwin 10.6.0 (xnu 1504.9.26~3).

Keybase proof

I hereby claim:

  • I am reissmann on github.
  • I am major (https://keybase.io/major) on keybase.
  • I have a public key whose fingerprint is DCB1 0B43 273C 0E23 5268 AD00 6461 2256 4468 FB98

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am reissmann on github.
  • I am major (https://keybase.io/major) on keybase.
  • I have a public key whose fingerprint is 2DF2 79CD 48DD 4D38 F0B6 7557 2E68 D557 49AA 1D99

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am reissmann on github.
  • I am major (https://keybase.io/major) on keybase.
  • I have a public key whose fingerprint is 2DF2 79CD 48DD 4D38 F0B6 7557 2E68 D557 49AA 1D99

To claim this, I am signing this object:

#! /bin/sh
### BEGIN INIT INFO
# Provides: ircd
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: controls the charybdis ircd
# Description: controls charybdis using start-stop-daemon