💾 Archived View for thrig.me › blog › 2024 › 05 › 03 › gg.gmi captured on 2024-07-09 at 01:21:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-10)
-=-=-=-=-=-=-
gmid ships with a "gg" script to get gemini resources, in the event that Lagrange was reported to have crashed when trying to download some MP3 or the other. Downside: gg does not support TOFU verification. There are various other scripts that can do the same, maybe git clone
https://github.com/kr1sp1n/awesome-gemini
and look for something that works for the software environments you have or want to have on hand.
$ cpanm Net::Gemini ... $ gmitool get gemini://thrig.me/music/SPACE.mp3 > foo
Using openssl(1) or similar directly may be possible,
$ printf 'gemini://thrig.me/music/SPACE.mp3\r\n' | openssl s_client -connect thrig.me:1965 -quiet > out depth=0 CN = thrig.me verify error:num=18:self signed certificate verify return:1
or some folks have bloated their nc(1) with SSL support, e.g. on OpenBSD you can run something like the following.
$ printf 'gemini://thrig.me/music/SPACE.mp3\r\n' | nc -T noverify -c thrig.me 1965 > out
You'll need to remove the gemini response line if the client does not know how to do that. Some operating systems may make this more difficult than others.
$ file out out: data $ od -bc out | sed 2q 0000000 062 060 040 141 165 144 151 157 057 155 160 145 147 015 012 111 2 0 a u d i o / m p e g \r \n I $ < out sed 1d > SPACE.mp3 $ file SPACE.mp3 SPACE.mp3: Audio file with ID3 version 2.3, MP3 encoding
Bonus points for listing all the sci-fi shows involved.
gemini://thrig.me/music/SPACE.mp3
P.S. try a HTTP proxy if you are really stuck for software alternatives.