From 4ae4f5f461a6d5f6290ef7da516ea22db93bfd91 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 30 Dec 2013 03:02:00 +0100 Subject: move stuff around bigeye is a cancer project now werkzeug git-clone now in cancer/git --- Cancer/bigeye/bigeyed | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100755 Cancer/bigeye/bigeyed (limited to 'Cancer/bigeye/bigeyed') diff --git a/Cancer/bigeye/bigeyed b/Cancer/bigeye/bigeyed new file mode 100755 index 00000000..5aa36210 --- /dev/null +++ b/Cancer/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