From bf2677e0dc75ec0e822990d2b96c8639039a7f5d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 25 May 2023 00:15:01 -0500 Subject: Initial commit --- cacophony.sh | 36 ++++++++++++++++++++++++++++++++++++ lighttpd.conf | 12 ++++++++++++ makefile | 2 ++ readme | 7 +++++++ source/index | 8 ++++++++ 5 files changed, 65 insertions(+) create mode 100755 cacophony.sh create mode 100644 lighttpd.conf create mode 100644 makefile create mode 100644 readme create mode 100755 source/index diff --git a/cacophony.sh b/cacophony.sh new file mode 100755 index 0000000..7cf4dc3 --- /dev/null +++ b/cacophony.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +SCRIPTDIR=source + +crlf() { # crlf < INPUT + ## Convert LF to CRLF + sed 's/$/ /g' +} + +header() { # header [STATUS] + cat <
"" ) +url.rewrite-if-not-file = ( "" => "/cacophony.sh${url.path}${qsa}" ) + +mimetype.assign += ( "" => "text/plain;charset=utf-8" ) \ No newline at end of file diff --git a/makefile b/makefile new file mode 100644 index 0000000..b783d07 --- /dev/null +++ b/makefile @@ -0,0 +1,2 @@ +serve: cacophony.sh lighttpd.conf + lighttpd -D -f lighttpd.conf diff --git a/readme b/readme new file mode 100644 index 0000000..45b6535 --- /dev/null +++ b/readme @@ -0,0 +1,7 @@ +CACOPHONY +"Every page a program" + +This repo contains *cacophony.sh*, a CGI script that will run every script in +the source/ directory as a CGI script to display a page. + +This is probably a bad idea. It originated mostly on tilde.town. \ No newline at end of file diff --git a/source/index b/source/index new file mode 100755 index 0000000..1b870b4 --- /dev/null +++ b/source/index @@ -0,0 +1,8 @@ +#!/bin/sh +# -*- markdown -*- +echo "";pandoc <" + +# Every page a program +## an exciting new experiment in web development + +Er, not really, lol. This is a plain CGI script with shit tacked on. Anyway ... -- cgit 1.4.1-21-gabe81