From e0ec5d2e8560ae433ee677622b24ba82dbe7630b Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 29 May 2011 15:47:21 +0200 Subject: lowered filesystem hierarchy--everything are modules --- bigeye/bigeyed | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 bigeye/bigeyed (limited to 'bigeye/bigeyed') diff --git a/bigeye/bigeyed b/bigeye/bigeyed new file mode 100755 index 00000000..5aa36210 --- /dev/null +++ b/bigeye/bigeyed @@ -0,0 +1,70 @@ +#! /bin/sh +# +# usage: bigeyed +# + +set -euf + +mkdir -vp /tmp/bigeye +cd /tmp/bigeye + +cleanup() { + test -n "$spid" && kill -9 $spid && spid= +} + +port=`touch /dev/bigeye 2>/dev/null && rm /dev/bigeye && echo 3 || echo 3333` + +#python -m http.server $port & server=$! +python -m SimpleHTTPServer $port & spid=$? +trap cleanup EXIT HUP INT QUIT TERM + +base64 -d>favicon.ico</dev/null 2>/dev/null + mv 0000000$frame.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