These be the phlogs of woog. | |
view [###] | |
<< | |
___________________________________________________________________ | |
2024-12-22 [001] 2024-12-23 [002] 2025-01-08 [003] | |
2025-02-10 [004] 2025-06-06 [005] | |
___________________________________________________________________ | |
phlog [005] made 2025-06-06... | |
Someone on SDF purportedly wrote a simple Gemini URI fetcher in ANSI C, | |
something similar to curl(1) or wget(1). Unfortunately I could not get | |
it to build on either NetBSD (what the main SDF cluster runs) nor LMDE | |
(a Debian-based variant of Linux Mint). Too bad as it's not a bad idea. | |
The project's README states it's relying on the openssl libraries for the | |
TLS negotiation so I thought "why not implement this in AWK using either | |
ncat(1) and/or openssl-s_client(1) ?", which turned out to be fairly easy: | |
-- | |
$ gemcat -h | |
gemcat - a simple CLI Gemini client for Unix. | |
usage: gemcat [-h|Gemini_URI] ; "gemini://" prefix optional | |
ex: gemcat gemini://geminiprotocol.net/ |fold -s | |
gemcat geminiprotocol.net/news/ |less | |
note: requires openssl(1); uses ncat(1) if installed. | |
-- | |
The script should run for any RTC members under ~woog/bin/gemcat and | |
can be otherwise gotten below: | |
gemcat.awk | |
The majority of Unix/Linux/BSD boxes have at least openssl installed | |
so other than maybe tweaking the "#!" path and possibly the usage scheme | |
if mawk or gawk aren't available it ought to be mostly usable as-is. |