iAdd random link script for better tracking. - gopher-lawn - The gopher lawn gopher directory project. Err bitreich.org 70 hgit clone git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ URL:git://bitreich.org/gopher-lawn/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/gopher-lawn/ bitreich.org 70 1Log /scm/gopher-lawn/log.gph bitreich.org 70 1Files /scm/gopher-lawn/files.gph bitreich.org 70 1Refs /scm/gopher-lawn/refs.gph bitreich.org 70 1Tags /scm/gopher-lawn/tag bitreich.org 70 i--- Err bitreich.org 70 1commit f4e5eb91b00a8a104596a4dcb75b059bec1d043a /scm/gopher-lawn/commit/f4e5eb91b00a8a104596a4dcb75b059bec1d043a.gph bitreich.org 70 1parent dd30c3a05562b2ca640fc70fa9afbe749095d001 /scm/gopher-lawn/commit/dd30c3a05562b2ca640fc70fa9afbe749095d001.gph bitreich.org 70 hAuthor: Christoph Lohmann <20h@r-36.net> URL:mailto:20h@r-36.net bitreich.org 70 iDate: Fri, 28 Aug 2020 13:09:54 +0200 Err bitreich.org 70 i Err bitreich.org 70 iAdd random link script for better tracking. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i A bitreich-lawn-random-link | 11 +++++++++++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 11 insertions(+), 0 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/bitreich-lawn-random-link b/bitreich-lawn-random-link /scm/gopher-lawn/file/bitreich-lawn-random-link.gph bitreich.org 70 i@@ -0,0 +1,11 @@ Err bitreich.org 70 i+#!/bin/sh Err bitreich.org 70 i+# Err bitreich.org 70 i+# Thanks to parazyd for the idea! Err bitreich.org 70 i+# Err bitreich.org 70 i+ Err bitreich.org 70 i+_f="$(find /br/gopher/lawn/*/ -name 'index.gph' | shuf -n1)" Err bitreich.org 70 i+_u="$(grep '^\[[0-9a-zA-Z]\{1\}|.*\]' $_f | head -n-1 | shuf -n1)" Err bitreich.org 70 i+_af="$(printf "%s\n" "$_u" | sed 's,|server|port\],|bitreich.org|70\],g')" Err bitreich.org 70 i+ Err bitreich.org 70 i+printf "%s\n" "$_af" Err bitreich.org 70 i+ Err bitreich.org 70 .