💾 Archived View for station.martinrue.com › chirale › b76a4ba158ee42338658501478f09a9e captured on 2024-05-26 at 15:52:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-12)
-=-=-=-=-=-=-
I spent a few hours this week putting together 122 lines of bash code to convert old Wordpress and Django articles into my next gemlog.
About 160 articles are suitable for porting from RSS Feed and JSON export.
I've used pandoc, gemgen, sed, jq, grep, recode, xmlstarlet for conversions and a-h/gemini go server to test the output.
Working at the index today: it's amazing that an append by two differents script and then a sort -r can make a decent index if you use the date --iso format as .gmi file prefix.
Older article atm is from 2007. I'll dig deeper, looking for even older chunks of memories to make this a time capsule. ^^
4 weeks ago · 👍 digbat
Not perfect, but finally online at gemini://chirale.org/ · 3 weeks ago
Thank you m0xee, I'll try it! Since I've not found Dockerfile here's a draft: it builds, but it have to be tested and expanded.
FROM nginx:stable-alpine
RUN apk update && apk add --no-cache git && apk add build-base openssl-dev libevent-dev bison
RUN git clone https://github.com/omar-polo/gmid.git
WORKDIR gmid
RUN ./configure && make && make install · 4 weeks ago
https://github.com/omar-polo/gmid.git
gmid gemini server that I use for my capsule can generate on-the-fly indices for directories the same way an http server would, e.g.: gemini://m0xEE.Net/pub/
It's no replacement for proper index page, but it's better than nothing in a lot of cases.
I really like this server — it supports dual stack and multiple hosts, cgi too — very versatile. And it's in C so should be faster and less resource-hungry than most. I don't think I'm using the latest version though and mine is patched a bit to support IPv6 on older Linux kernels and mixed-case host names, I like it very much! · 4 weeks ago