kesiev on Station

author: kesiev

2023-03-23 16:40 UTC

<?php if(!is_file($C="server.pem")){$p=openssl_pkey_new();openssl_x509_export(openssl_csr_sign(openssl_csr_new(["commonName"=>"localhost"],$p),null,$p,365),$a);openssl_pkey_export($p,$b);fputs(fopen($C,'w'),$a.$b);}if($k=stream_socket_server("ssl://0.0.0.0:1965",$n,$s,12,stream_context_create(["ssl"=>["local_cert"=>$C]]))){for(;;)if($o=@stream_socket_accept($k)){for($b="";!strpos($b,"\r\n");$b.=fread($o,1));fputs($o,"20 text/gemini\r\n$b");fclose($o);}}

A hacky Mastodon-post sized PHP Gemini echo server.

路 2 Replies 路 1 Thumb

2023-03-21 14:14 UTC

Found an old working TonidoPlug v1 in a closet just to discover that the Tonido project "ended" last year and I can't find anything to reset, restore, or - better - replace its OS. 馃う It would have been nice to put him back on his feet and fiddle with Gemini a bit. Better luck next time. 馃し

路 0 Replies 路 0 Thumbs

2023-03-20 16:52 UTC

Browsing the Geminispace using the Lagrange client on both desktop and Android feels like living in an alternate cyberpunk timeline: everything looks like a minimal Corp. homepage, a fixer jobs board, or a hacking group manifesto. 馃敨馃槑

路 3 Replies 路 8 Thumbs

2023-03-20 16:40 UTC

Ciao! 馃憢

路 2 Replies 路 2 Thumbs