-- Leo's gemini proxy
-- Connecting to xoc3.io:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini;charset=UTF-8
i realized that amfora blogs have a lot of great content for terminal/cli type stuff. so i made a bash function that lets me quickly search through gemini blogs using the geminispace search engine.
here is are those aliases/functions:
urlencode() { python -c "$(echo -e 'import sys,urllib.parse as ul;\nprint(ul.quote(sys.argv[1]))')" "$*" } ams() { amfora "gemini://geminispace.info/search?$(urlencode $@)" }
the basics of the urlencode function came from this stack overflow post:
i modified it a bit to make it a bit more usable. besides that, the rest is pretty straight forward. `ams` stands for "amfora search".
i'll try to make gemini my first goto place before i open ddg.gg.
-- Response ended
-- Page fetched on Fri May 10 07:45:24 2024