=> back to xoc3.io

2021-07-26 - amfora search alias

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:

=> https://unix.stackexchange.com/questions/159253/decoding-url-encoding-percent-encoding

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.

Proxy Information
Original URL
gemini://xoc3.io/blog/2021-07-26
Status Code
Success (20)
Meta
text/gemini;charset=UTF-8
Capsule Response Time
724.181827 milliseconds
Gemini-to-HTML Time
0.45128 milliseconds

This content has been proxied by September (ba2dc).