page too slow? try the OG cool kid version...
Scheme. now.
This is a collection of things I've learned while creating this corner of the webzone. I hope this helps your ventures.
The is open for everybody! (for now)
Send clonk an SSH public key at the Discord or IRC, along with a desired username.
Much like other webrings, simply create an index.html
at ~/public_html
and it will be your main page.
subpages can be created by creating a subdirectory and making an index.html
there.
add <!-- RINGBEARER -->
to your name along with a link to https://pub.colonq.computer/~llll/cgi-bin/ring?me=
in your index.html, and replace USERNAME with your username.USERNAME
&offset=-1
heres a footer a lot of members of the ring uses:
<!-- RINGBEARER -->
<iframe
style="position: fixed;left:0px;bottom:0px;border: 0px;"
width="100%"
height="30rem"
src="https://pub.colonq.computer/~llll/cgi-bin/ring?me=USERNAME
"
></iframe>
heres the footer that are used in this page:
<!-- RINGBEARER --> <source src="/~prod/footer.js"></source>
In the v2 version of the ring list, you can also write your own site description and subpage highlights.
write relevant metadata between the RINGBEARER
and -->
.
Here are some example:
<!-- RINGBEARER my page! books book recommendation game/1 my first game! silly/rainbow/a/b/c the secret chamber... -->
Anything in ~/public_html/cgi-bin
will be executed instead of rendered, meaning you can have client execute CGI and render the console output as a result.
The programs for cgi must be statically linked, meaning all libraries must be included and all that.
Gambit Scheme is included in the pub, and you can gsc -exe
a scheme code into a cgi binary easily.
Try:
(display "HTTP/1.1 200 OK\n\n") (display "Hi!")
you can get the url query from (getenv "QUERY_STRING")
to pass parameter from front to backend.
most SRFI/racket stuff don't work and you might have to make a lot of common functions from scratch. here are some codes publically available in this webzone that you can check out:
- Cyberspace v1.0 by Fabius
- general API script by prod
- file upload bash script by badcop (executing bash via cgi)
If you made a cgi script and has publicized the source, please mention @pr_d (me) about it at discord/irc! TYVM ♥
We have wall
! see wall --help
for more info but basically it sends a message to everyone connected to it at the time.