From d4678ed9d0ca86c4e5e4ba43cdc5f5ff0fc2d004 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 May 2011 23:03:36 +0200 Subject: bigeyed: initial commit --- modules/bigeye/bigeyed | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100755 modules/bigeye/bigeyed (limited to 'modules/bigeye/bigeyed') diff --git a/modules/bigeye/bigeyed b/modules/bigeye/bigeyed new file mode 100755 index 00000000..a1d558eb --- /dev/null +++ b/modules/bigeye/bigeyed @@ -0,0 +1,68 @@ +#! /bin/sh +# +# usage: bigeyed +# + +set -euf + +mkdir -vp /tmp/bigeye +cd /tmp/bigeye + +cleanup() { + test -n "$spid" && kill -9 $spid && spid= +} + +#python -m http.server 3 & server=$! +python -m SimpleHTTPServer 3 & spid=$? +trap cleanup EXIT HUP INT QUIT TERM + +base64 -d>favicon.ico</dev/null 2>/dev/null + #convert -brightness-contrast 20x10 00000001.jpg 00000002.jpg + mv 00000001.jpg index.jpg + cat>00000001.html< + + + $hostname's bigeye +

$date

+

ZOMBIECANCER

+EOF + mv 00000001.html index.html +} + +while blink; do + sleep 1 +done + -- cgit v1.2.3