This commit is contained in:
c0dev0id 2023-10-24 08:08:46 +02:00
parent 7212d02836
commit c26e9ed80f
16 changed files with 250 additions and 22 deletions

View File

@ -1 +0,0 @@
/var/www/htdocs/

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
src/smokeping
src/paste
src/distfiles
.control/*
.asciidoctor
www/

View File

@ -1,5 +1,5 @@
all:
make -s website
make -s -j8 website
debug:
make website
@ -86,3 +86,11 @@ _install: website
doas chmod -R ugo+Xrw www
echo "Deploy: www/ => /var/www/htdocs/"
cd www && doas rsync -a --partial --delete --exclude "*/cache/*" --out-format="Deploy: %f => /var/www/htdocs/%f" * $(REMOTE)
#### HELPER TARGETS ####
edit-css:
vim src/assets/style.css
make install
make edit-css

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,40 @@
@font-face {
font-family: 'bungee shade';
src: url('/assets/bungee.ttf');
font-family: 'bungee shade regular';
src: url('/assets/BungeeShade-Regular.ttf');
}
@font-face {
font-family: 'fira sans regular';
src: url('/assets/FiraSans-Regular.ttf');
}
@font-face {
font-family: 'fira sans bold';
src: url('/assets/FiraSans-Bold.ttf');
}
@font-face {
font-family: 'fira mono regular';
src: url('/assets/FiraMono-Regular.ttf');
}
.header-title {
body {
font-family: fira sans regular;
}
h1, h2, h3, h4, h5, h6, b {
font-family: fira sans bold;
}
code, pre {
font-family: fira mono regular;
}
a {
text-decoration: none;
}
.header-title a {
text-decoration: none;
font-size: 2rem;
font-weight: 700;
font-family: bungee shade,sans-serif;
font-weight: 400;
font-family: bungee shade regular;
}
.header-title a {
@ -17,6 +44,7 @@
.header-row {
margin-top: 10px;
margin-bottom: 2px;
font-family: fira sans bold;
}
.header-item {

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

14
src/favicon.png Normal file
View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/ugly.css">
<title>gopher://codevoid.de</title>
</head>
<body>
<pre>
</pre>
</body>
</html>

View File

@ -1,5 +1,5 @@
</article>
<div style="text-align:left">-- <br>Proudly made with vim.<br></div></html>
<div>-- <br>Proudly made with vim and bsd make.</div>
</body>
</html>

122
src/gpg.txt Normal file
View File

@ -0,0 +1,122 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFr51VIBEACZLzWpx/JMZsm0Nl+hIWLEbvf04UGlDA8njr5lF+n3SY1YoKxs
HsuHI60PvStKEh7hfXu+EyZfvk/7NBXnqi+nJzRNHN8b/KXVXugV7Ix5sP4QYfPt
Cpi9mXQNXNHHQyQFt5GN02eyeqdu7nIaIMkI7HP9421S55i/H3UNajTNJpd7AWZ+
B5U76M6ydjI1cPrLVzfRkWk2se41tUVSas6t7nzAtlkiWEzfV7ee1Ob1YciXaDxS
H0ROlbhmHBH6ySjea5iDlKYR7VILN262DNxaXLCQv4ZnCsUMlNyupl/qsqQkKZS3
BHJ2Jrfx6t1qV1+jmgb2ARjWef8VeDLm138yZaFDyCvpWhBSNZCyjGJppUGpvOAW
TYAyOVKjDOErh6sqqwMX2scuwiKmfncq1Ayy3d3VzC41SEhJGj/bllR3kMSD5PQa
MsKFJu3GnLEw81GifMzrNsn7wlxz3k/Zj12PaLVc3+ixjpau5WUzMUTKiz3l0Avh
LOVJIVYL2RctFsOGSZWEF3X5IgB7g3ry4qGz8OO3xaFSpLjeWjvwtdaiBPH76hG0
s1GkJu9o/Kk6N98U9uFESsH+I7hZxwpLF5cOh3qrQ7yjx6hPMYL3GnCNyzdjY7Ht
V6YF7bFwGzWn2lF9raefRvriRbqkjl478fy5SnjtQAbgRsFq5D05FJXEcQARAQAB
tCBTdGVmYW4gSGFnZW4gPHNoQHN0ZWZhbmhhZ2VuLmRlPokCTgQTAQoAOBYhBMvT
xGhktGUX6Pu5D7a8LsVSvkO6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PNO6
sAe8i+OKIrokmP7YnIAUtBfA0pMZTqZthTEIJFpHfcJGY7OaCM0kr1T/s10Lprj6
1oyd4zH3ca1Ljwhgcuo+P4oD6+mptEWPhouuveZgH/4Rsz5P1MFzzwSIzQkqrCKw
1vmcg0toWe/v5UdClc7aGt0fKwWyHc87ZsV2jX8UrbEAElP0kqYcg+rspNSA+y7T
L54YN5LIH5QLfe8zoXxRPa91hQ5PP0X17hfl1ZwXDZqfPSv12Qj0W9tveCVA0SBo
SZdp6F7IN1NwHEUPmelseu82+sSooiNIOwNZSJdGwrWnCBtmWJS8djFvFwJNZLmH
ctwvxBwYt9aTIlQU8AzYOracxjdrJ/WUBD84TEhKAq2f/vvMzpelxXo0Yiecjw7/
+U/h95sdn/XvH1n4T8zUE+uzAu4Rkr77RHuBOaPu9pXMKaAqiU4=
=ZR0P
-----END PGP PUBLIC KEY BLOCK-----

1
src/images/tag.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M19 18l2 1V3c0-1.1-.9-2-2-2H8.99C7.89 1 7 1.9 7 3h10c1.1 0 2 .9 2 2v13zM15 5H5c-1.1 0-2 .9-2 2v16l7-3 7 3V7c0-1.1-.9-2-2-2z"/></svg>

After

Width:  |  Height:  |  Size: 263 B

View File

@ -1,22 +1,40 @@
#!/bin/ksh
echo "<h1>Welcome!</h1>"
echo "
<p>Welcome to my little place on the web. It may not been the pretties you've seen today, but it's all self made.</p>
"
echo "<h2>Posts</h2>"
echo "<ol>"
# chdir to working directory
cd src/posts
cat <<'EOF'
<h1>
Welcome!
</h1>
<p>
Welcome to my little place on the web. It may not been the pretties
you've seen today, but it's all self made.
</p>
<h2>
Posts
</h2>
<ul>
EOF
# print list
ls -r1 | while read line
do
T="$(echo "${line%%.*}" | tr '_' ' ')"
L="posts/${line%%.*}.html"
echo "<li><a href=\"$L\">$T</a></li>"
TITLE="$(echo "${line%%.*}" | tr '_' ' ')"
URI="posts/${line%%.*}.html"
cat <<EOF
<li>
<a href="$URI">
$TITLE
</a>
</li>
EOF
done
echo "</ol>"
cat <<EOF
</ul>
EOF

32
src/smoke/index.ph Normal file
View File

@ -0,0 +1,32 @@
<h1>Internet Monitor</h1>
Due to internet connection problems, I started to monitor my connection
from inside my network to vodafone.de. It all started with terrible
latency spikes and package loss every 6-12h. Mostly starting at 23:30
and only recovering after a router/modem restart (Fritz Box Cable 6690).
<h2>Smokeping</h2>
To monitor my connection to the outside world, I&rsquo;m running smokeping.
Smokeping sends 20 ping probes every 300 seconds and monitors how many pings
are answered and what&rsquo;s how fast these answeres arrive.
<ul>
<li>The shadow lines (up and down) are showing the spectrum of the response times (latency).</li>
<li>The dot position shows the average response time.</li>
<li>The color of the dot shows the package loss (how many of the 20 requests got lost).</li>
</ul>
<h2 id="last-3-hours">Last 3 Hours</h2>
<img src="/smokeping/cache/Network/Vodafone_last_10800.png" alt="Last 3 Hours">
<h2 id="last-30-hours">Last 30 Hours</h2>
<img src="/smokeping/cache/Network/Vodafone_last_108000.png" alt="Last 30 Hours">
<h2 id="last-10-days">Last 10 Days</h2>
<img src="/smokeping/cache/Network/Vodafone_last_864000.png" alt="Last 10 Days">
<h2 id="last-30-days">Last 30 Days</h2>
<img src="/smokeping/cache/Network/Vodafone_last_31104000.png" alt="Last 30 Days">
The interactive Smokeping UI is <a href="/smokeping/?target=Network.Vodafone">here</a>.