diff options
author | makefu <github@syntax-fehler.de> | 2011-08-24 01:59:20 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-08-24 01:59:20 +0200 |
commit | 8951433431572bb3e3e2c7b77d97f49df7ce6170 (patch) | |
tree | 7938b56cee8d403b806044ed8fc92a56d388dc74 | |
parent | 1288c00ac6048b180e959b56d1834f927417c552 (diff) | |
parent | f5d75883e517965fa025e7b88e790a13a3e9dc9b (diff) |
Merge branch 'master' of github.com:krebscode/painload
111 files changed, 89555 insertions, 36 deletions
@@ -3,3 +3,5 @@ a.out /bin/ /node/src /node/out +/ovh/soapi/src +/ovh/soapi/SOAPpy diff --git a/btc/mtgox/json_ticker_helper.py b/btc/mtgox/json_ticker_helper.py new file mode 100755 index 00000000..727dd594 --- /dev/null +++ b/btc/mtgox/json_ticker_helper.py @@ -0,0 +1,7 @@ +#!/usr/bin/python + +import json,sys + +result = json.load(sys.stdin) + +print "High: " + str(result["ticker"]["high"]) + " Low: " + str(result["ticker"]["low"]) + " Last: " + str(result["ticker"]["last"]) diff --git a/btc/mtgox/ticker_text.sh b/btc/mtgox/ticker_text.sh new file mode 100755 index 00000000..2bcac134 --- /dev/null +++ b/btc/mtgox/ticker_text.sh @@ -0,0 +1,3 @@ +#!/bin/sh +dirname=`dirname $(readlink -f $0)` +$dirname/mtgox.ticker | python $dirname/json_ticker_helper.py diff --git a/cholerab/bling/krebs-v2_320x240.png b/cholerab/bling/krebs-v2_320x240.png Binary files differnew file mode 100644 index 00000000..cae1e835 --- /dev/null +++ b/cholerab/bling/krebs-v2_320x240.png diff --git a/cholerab/bling/krebs_inverse_r0ket.gif b/cholerab/bling/krebs_inverse_r0ket.gif Binary files differnew file mode 100644 index 00000000..58c753e7 --- /dev/null +++ b/cholerab/bling/krebs_inverse_r0ket.gif diff --git a/cholerab/bling/krebs_plain_r0ket.gif b/cholerab/bling/krebs_plain_r0ket.gif Binary files differnew file mode 100644 index 00000000..d246d0c7 --- /dev/null +++ b/cholerab/bling/krebs_plain_r0ket.gif diff --git a/cholerab/kasten/doku b/cholerab/kasten/doku new file mode 100644 index 00000000..8246c80f --- /dev/null +++ b/cholerab/kasten/doku @@ -0,0 +1,7 @@ +[23:08:57] makefu> tv\d: wir haben ein neuen status in krebs. die Cancer Knights. Sie arbeiten fuer uns und fuehlen sich besser weil sie ueber den crab people sind. Sie stellen hardware und + arbeitskraft bereit, haben aber keine rechte +[23:09:49] momorient> die cancer knights punchen dann auch für uns wenn wir zu faul sind oder? +[23:10:22] makefu> infin wird der erste cancer knight +[23:11:46] makefu> jo, solange das noch nicht implementiert ist haben wir cancer knights +[23:12:26] makefu> sobald 3 cancer knights zusammen sind koennen sie krebsminister werden und dann zum punchen aufgefordert werden + diff --git a/cholerab/shirts/bestellliste b/cholerab/shirts/bestellliste index d097ff7d..9a42b443 100644 --- a/cholerab/shirts/bestellliste +++ b/cholerab/shirts/bestellliste @@ -1,16 +1,17 @@ -tv: 2 M - 1 S + GEZ ERH +tv: 2 M j + 1 S j ulrich: 1 M -felix: 2 M - 1 S -Lassulus: 2 M +felix: 2 M j j + 1 S j j +Lassulus: 2 M j j Pfleidi: 1 L Tensai: 1 L Momo: 1 XXL -hadez: 1 L - 1 M +hadez: 1 L j j + 1 M j j Phil: 1 S -Lukas: 1 M +Lukas: 1 M v j Jan: 1 2XL Ronny: 1 M Marc: 1 L @@ -18,6 +19,6 @@ Lotho: 1 XL Sascha: 1 XL Moritz: 1 M RIPE: 1 XL -kh: 1 L -miefda: 1 L - 1 XL +kh: 1 L j j +miefda: 1 L j j + 1 XL j j diff --git a/claws/.gitignore b/claws/.gitignore new file mode 100644 index 00000000..5da5924f --- /dev/null +++ b/claws/.gitignore @@ -0,0 +1 @@ +rcontrol diff --git a/claws/Makefile b/claws/Makefile new file mode 100644 index 00000000..abfae5eb --- /dev/null +++ b/claws/Makefile @@ -0,0 +1,18 @@ +# Makefile for the rcontrol program +# We set a setuid bit as this tools needs root privilleges to open the FT232 device. + +BINARY=./rcontrol + +install: all + ln -snf $$PWD/$(BINARY) ../bin/ + +all:$(BINARY) + chown root.root $(BINARY) + chmod +s $(BINARY) + +$(BINARY): rcontrol.c + #punani install libftdi1 libftdi-dev + gcc -Wall -lusb -lftdi rcontrol.c -o $(BINARY) + +clean: + rm -f $(BINARY) diff --git a/claws/communication.h b/claws/communication.h new file mode 100644 index 00000000..db4b2c36 --- /dev/null +++ b/claws/communication.h @@ -0,0 +1,25 @@ +/* These are the command codes of the relay card. If you change something here you must + * recompile the firmware and the control tool. */ +#ifndef _COMMUNICATION_H +#define _COMMUNICATION_H + +#define COMMAND_RELAY_ON 0x01 +#define COMMAND_RELAY_OFF 0x02 +#define COMMAND_RELAY_TOGGLE 0x04 +#define COMMAND_RELAY_SET 0x08 +#define COMMAND_RELAY_TIME_ON 0x10 +#define COMMAND_RELAY_TIME_OFF 0x20 +#define COMMAND_RELAY_TIME_CYCLIC 0x40 +#define COMMAND_GET_STATUS 0x80 +#define COMMAND_DEL_TIMERS 0x81 +#define COMMAND_SETUP_REMOTE 0x82 + + +#define RESPONSE_OK 0xff +#define RESPONSE_INVALID_COMMAND 0xfe +#define RESPONSE_INVALID_ARGUMENT 0xfd +#define RESPONSE_TRANSMISSION_ERROR 0xfc + +#define COMMANDO_LENGTH 4 + +#endif diff --git a/claws/rcontrol.c b/claws/rcontrol.c new file mode 100644 index 00000000..972c97d0 --- /dev/null +++ b/claws/rcontrol.c @@ -0,0 +1,479 @@ +/* +----------------------------------------------------------------------+ + * | relay control program | + * | by mgr, 2007 | + * | last change: 2009-01-05 |