-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: golang
action: blob
revision:
path_from: gopher-get
revision_from: refs/heads/master:
path_to:
revision_to:

git.thebackupbox.net

golang

git://git.thebackupbox.net/golang

blob of:

golang

/ gopher-get

refs/heads/master:/gopher-get
 #!/bin/sh
 ### I *require* that the type identifier is separated from the path by a /
 ### I'm not interested in hacks to work around this atm.
 domain="$(printf "%s\n" "$1" | uricut -d)"
 port="$(printf "%s\n" "$1" | uricut -P)"
 path="/$(printf "%s\n" "$1" | uricut -p | cut -d/ -f3-)"
 if [ ! "$port" ];then port=70;fi
 printf "%s\r\n" "$path" | nc $domain $port

-- Response ended

-- Page fetched on Sun Jun 2 14:49:53 2024