-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: todo action: commit revision: path_from: revision_from: 2ef0e7b544f4f60346f54ad80982e3e1f5b73715: path_to: revision_to:
commit 2ef0e7b544f4f60346f54ad80982e3e1f5b73715 Author: epoch <epoch@hack.thebackupbox.net> Date: Wed May 26 04:38:36 2021 +0000 TODO: come up with a clever commit message diff --git a/Makefile b/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..23cfdd872942736caae26a4f13fef08ad9a06cab --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +PREFIX:=/usr/local + +.PHONEY: install + +all: + echo nothing to do + +install: + install -t $(PREFIX)/bin todo + install -t $(PREFIX)/bin todo.add + install -t $(PREFIX)/bin todo.current + install -t $(PREFIX)/bin todo.grep + install -t $(PREFIX)/bin todo.last + install -t $(PREFIX)/bin todo.length + install -t $(PREFIX)/bin todo.link + install -t $(PREFIX)/bin todo.list + install -t $(PREFIX)/bin todo.n + install -t $(PREFIX)/bin todo.rm diff --git a/todo b/todo new file mode 100755 index 0000000000000000000000000000000000000000..49339e82a3248f2afa4ed92c73c1382268e60c1d --- /dev/null +++ b/todo @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +cat -n "/var/todo/${USER}.txt" | grep -F -- "$*" | shuf 2>/dev/null | head -n1 | tee "/var/todo/${USER}.current" diff --git a/todo.add b/todo.add new file mode 100755 index 0000000000000000000000000000000000000000..58d9953500551c63416492a493009187e6cb2bac --- /dev/null +++ b/todo.add @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +printf '"%s %s"\n' "$*" "$(date +%s)" >> "/var/todo/${USER}.txt" diff --git a/todo.current b/todo.current new file mode 100755 index 0000000000000000000000000000000000000000..ff5aeefed4ce953d7a74baa39e6d617caeaf482b --- /dev/null +++ b/todo.current @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +cat "/var/todo/${USER}.current" diff --git a/todo.grep b/todo.grep new file mode 100755 index 0000000000000000000000000000000000000000..111ca04f30db033dcbdb50093ad836a9575801e5 --- /dev/null +++ b/todo.grep @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +cat -n "/var/todo/${USER}.txt" | grep -i "$*" diff --git a/todo.last b/todo.last new file mode 100755 index 0000000000000000000000000000000000000000..d96fba063afb4cfdec619b2f20f2ef86b72d2c1f --- /dev/null +++ b/todo.last @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +a=${1:-1} +nl "/var/todo/${USER}.txt" | tail -n "${a}" diff --git a/todo.length b/todo.length new file mode 100755 index 0000000000000000000000000000000000000000..5460cbbec44297c2f628c5271bbde333db5bbd35 --- /dev/null +++ b/todo.length @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +wc -l "/var/todo/${USER}.txt" diff --git a/todo.link b/todo.link new file mode 100755 index 0000000000000000000000000000000000000000..c84be7707efdfdb351e0c669a49ccc07b8855a25 --- /dev/null +++ b/todo.link @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +echo "http://thebackupbox.net/todo/${USER}.txt" diff --git a/todo.list b/todo.list new file mode 100755 index 0000000000000000000000000000000000000000..57dc7532e08828d82c88920810512634e1baacc1 --- /dev/null +++ b/todo.list @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +cat -n "/var/todo/${USER}.txt" diff --git a/todo.n b/todo.n new file mode 100755 index 0000000000000000000000000000000000000000..a3ca34c5da769c16ec2d31a673630b91ccb5284d --- /dev/null +++ b/todo.n @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +cat -n "/var/todo/${USER}.txt" | grep '^ *'"$*"' ' diff --git a/todo.rm b/todo.rm new file mode 100644 index 0000000000000000000000000000000000000000..34b846afc5e63b7d3f73acdfaf05096451fbef6b --- /dev/null +++ b/todo.rm @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +rmln "$1" "/var/todo/${USER}.txt"
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 17:20:51 2024