-- Leo's gemini proxy

-- Connecting to thrig.me:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Gemini Get


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.

-- Response ended

-- Page fetched on Sat May 18 05:49:35 2024