add symlinks and tidy uptime.sh

This commit is contained in:
Ben Harris 2020-06-14 21:07:50 -04:00
parent 0018df46c9
commit 48de610c78
11 changed files with 14 additions and 7 deletions

1
cgi-bin/env.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./env.sh

View File

@ -11,10 +11,9 @@
<p>here are some scripts i've been playing with</p>
<?php foreach (glob("*") as $cgi) {
$cgi = basename($cgi);
if ($cgi === "index.php") continue; ?>
<p>-&gt; <a href="<?=$cgi?>"><?=$cgi?></a></p>
<?php foreach (glob("*.sh") as $cgi) {
$cgi = basename($cgi); ?>
<p><a href="<?=$cgi?>.txt">-&gt;</a> <a href="<?=$cgi?>"><?=$cgi?></a></p>
<?php } ?>
<p>sources available on <a href="https://tildegit.org/ben/tilde/src/branch/master/cgi-bin">tildegit</a></p>

1
cgi-bin/info.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./info.sh

1
cgi-bin/ip.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./ip.sh

1
cgi-bin/loadavg.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./loadavg.sh

1
cgi-bin/sysinfo.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./sysinfo.sh

1
cgi-bin/tagline.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./tagline.sh

1
cgi-bin/teapot.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./teapot.sh

View File

@ -7,7 +7,7 @@ printf '{"hostname": "%s", "uptime": "%s", "since": "%s", "users": "%s"}\n' \
"$(hostname)" \
"$(uptime | sed -e "s/.* up *//" -e "s/ *days, */d/" -e "s/:/h/" -e "s/,.*/m/")" \
"$(uptime -s)" \
"$(online-users)"
"$(who | grep -v tmux | cut -d' ' -f1 | sort -u | wc -l)"
exit 0

1
cgi-bin/uptime.sh.txt Symbolic link
View File

@ -0,0 +1 @@
./uptime.sh

View File

@ -296,9 +296,10 @@ or open a github issue and i'll get back to you as soon as i can.</p>
<div class="feed">
<h3>live feels-sharing:</h3>
<ul>
<li><a href="https://tilde.team/~maleza/feels">~maleza</a> 2020-06-07 at 18:19 (utc-4)</li>
<li><a href="https://tilde.team/~leea/blog">~leea</a> 2020-05-24 at 08:17 (utc-4)</li>
<li><a href="https://tilde.team/~lukewarmcat/blog">~lukewarmcat</a> 2020-05-03 at 16:52 (utc-4)</li>
<li><a href="https://tilde.team/~lickthecheese/blog">~lickthecheese</a> 2020-04-13 at 20:50 (utc-4)</li>
<li><a href="https://tilde.team/~leea/blog">~leea</a> 2020-03-12 at 19:16 (utc-4)</li>
<li><a href="https://tilde.team/~mayhair/feels">~mayhair</a> 2019-09-12 at 09:02 (utc-4)</li>
<li><a href="https://tilde.team/~amedrado/feels">~amedrado</a> 2019-07-31 at 14:43 (utc-4)</li>
<li><a href="https://tilde.team/~ben/feels">~ben</a> 2019-07-24 at 16:58 (utc-4)</li>
@ -311,7 +312,6 @@ or open a github issue and i'll get back to you as soon as i can.</p>
<li><a href="https://tilde.team/~firepal/blog">~firepal</a> </li>
<li><a href="https://tilde.team/~stern/blog">~stern</a> </li>
<li><a href="https://tilde.team/~ngp/feels">~ngp</a> </li>
<li><a href="https://tilde.team/~notopygos/feels">~notopygos</a> </li>
<li><a href="https://tilde.team/~jackomix/blog">~jackomix</a> </li>
<li><a href="https://tilde.team/~kneezle/feelsblog">~kneezle</a> </li>
<li><a href="https://tilde.team/~anelki/blog">~anelki</a> </li>