-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: uritools action: commit revision: path_from: revision_from: 87dd9c7e8c87c681b9808083448cd546880ebf3b: path_to: revision_to:
commit 87dd9c7e8c87c681b9808083448cd546880ebf3b Author: epoch <epoch@hacking.allowed.org> Date: Fri Apr 6 02:06:20 2018 -0500 added printfurl and start tools and ignore file. and example config. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..805d9dca56a5e3264b9941bdd8bdc5c48ad26147 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +matchurl +cuturl diff --git a/printfurl b/printfurl new file mode 100755 index 0000000000000000000000000000000000000000..3da61a6adb405947ed5b339453a67e74124f3f35 --- /dev/null +++ b/printfurl @@ -0,0 +1,5 @@ +#!/bin/sh +cutargs="$(printf "%s\n" "$1" | tr '%' '\n' | tail -n+2 | sed 's/^\(.\).*/-\1/g')" +printfargs="$(printf "%s\n" "$1" | sed 's/%./%s/g')" +#printf "printfargs: %s\n" "$printfargs" +cuturl $cutargs | tr '\n' ' ' | xargs -L1 printf "$printfargs" diff --git a/start b/start new file mode 100755 index 0000000000000000000000000000000000000000..d21a799b7b479186b5453524a5bf24788b3f7fc4 --- /dev/null +++ b/start @@ -0,0 +1,4 @@ +#!/bin/sh +scheme="$(printf "%s\n" "$1" | cuturl -s)" +line="$(grep "^${scheme}:" ~/.config/start.conf | cut -d: -f2-)" +printf "%s\n" "$1" | printfurl "$line" | sh diff --git a/start.conf.example b/start.conf.example new file mode 100644 index 0000000000000000000000000000000000000000..372df9702588e3605de0b0df142e13b9541f7bb0 --- /dev/null +++ b/start.conf.example @@ -0,0 +1,2 @@ +finger:printf "%p\n" | ncat "%d" 79 | tr -d '\r' | xmessage -file - +http:dillo %U
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 19:10:36 2024