1
0

the result of a 20 hour bender

This commit is contained in:
dtb 2023-02-05 20:02:19 -05:00
parent bc388e40e3
commit de7e9249de
3 changed files with 83 additions and 20 deletions

View File

@ -3,6 +3,7 @@ oauth: pages.sr.ht/PAGES:RW
packages: packages:
- hut - hut
- m4 - m4
- python3
tasks: tasks:
- package: | - package: |
cd homepage cd homepage

View File

@ -2,7 +2,10 @@
RM = rm -f RM = rm -f
generate: index.html subdirs generate: blah index.html subdirs
blah: blog
./blog
index.html: *.m4 index.html: *.m4
m4 index.m4 >index.html m4 index.m4 >index.html

97
homepage/blah/index.html → homepage/blog Normal file → Executable file
View File

@ -1,12 +1,27 @@
<!DOCTYPE html> #!/bin/sh
<HTML> set -ex;test -d blah||mkdir blah;python -c "
<HEAD> import os;os.chdir('blah')
<TITLE>blah</TITLE> with open('../$0', 'r') as f:
</HEAD> for day in f.read().split('\n\n\n'):
<BODY> if day.split('\n')[0] == '#!/bin/sh':
<PRE> prefix='\n'.join(day.split('\n')[day.split('\n').index(
'exit 0')+1:])+'\n';continue
elif day.split('\n')[0][:4] == '<!--': suffix=day;continue
with open(day.split('\n')[0]+'.html', 'x') as g:
g.write(prefix+day+'\n'+suffix)
";cd blah;for f in *.html;do # in glob we trust
test -z "$last" || sed -i "s,__NAVIGATION__,$nav<A HREF=\"$f\">\&gt;</A></P>," \
"$last";nav="<P>";test -z "$last" || nav="$nav<A HREF=\"$last\">\&lt;</A>"
nav="$nav<A HREF=\"index.html\">^</A>";last="$f";done
sed -i "s,__NAVIGATION__,$nav</P>," "$last"
for f in *.html;do # e unibus puellam
fi="$(echo "$f" | cut -d . -f 1)";test "$fi" = "index" && continue
printf '<A HREF="%s.html">%s</A>\n' "$fi" "$fi"; done|sort -r|\
sed -e "1i<!DOCTYPE html><HTML><HEAD><TITLE>blah</TITLE></HEAD><BODY><PRE>\
<A HREF="..">..</A>" -e '$a</PRE></BODY></HTML>'>index.html
exit 0
<!DOCTYPE html><HEAD><TITLE>blah</TITLE></HEAD><BODY><PRE>
THE WRITER MUST EAT -&gt; patreon.com/trn1ty &lt;- THE WRITER MUST EAT -&gt; patreon.com/trn1ty &lt;-
<A HREF="..">..</A>
blah! blah!
@ -17,12 +32,57 @@ ideas' witlessness;
ideas' witnesses; ideas' witnesses;
ideas- ideas-
HOW TO READ THIS BLAH __NAVIGATION__
The newest posts are dropped at the top, so just read the newest post and then
read older posts if somehow you actually enjoyed reading the newest post. Posts
rarely make sense, which is a product of myself not making any sense but also <!-- insert legal threat or something -->
that they're not ordered in any sort of chronology except that when I find </PRE></BODY></HTML>
something I drop it on the top.
2023-02-05
2023 already?
if i were a dog i would like to eat dog food
food,if i were,would i?eat dog to like a dog
food,if dog were,would dog? eat like i i i i i i i i i i i i i i i i
___ _ |
To be honest, I don't think I would survive a | / \ |
day in Hell. It seems too hot. I was born and | |\ /\ \ |
sorta raised in Maine so I'm used to the cold | | \ \ \ \ |
- the kind of cold for which others make you \ \| ||_|| |
pay an arm, leg, and the tips of your ears!!! _\ \ \ \_/ /
\___/ \__/
I know this is word salad I just like it when the line endings match
up.
> The only safe thing to do was put bands in your top eight so there was no
> drama.
> But I liked the drama.
Enveloped in flame Lex, for a brief moment, remembered playing video
games when he was a kid. He sat on the floor in front of the television holding
a game controller - affected - and played a garbled mix of polygons and pixels.
The room caught and the television was on fire. He was on fire. The TV stand,
the game console, the couch behind him, the cat. The TV went out and he was
left holding a controller that wasn't quite right and melting onto his hands.
His clothes were covered in flame. He threw the controller on the ground out of
disappointment and opened his mouth to speak and crumpled into ashes, and
remembered nothing more, ever.
2023-02-04
[...]: I stand corrected.
Trin: Don't stand corrected. Kneel.
I hope Hell has good ice cream flavors.
Y'all won't see this for a while, I'm rewriting the blah stuff and making a
markup format for it (fuckscript).
2023-02-03 2023-02-03
@ -3854,7 +3914,8 @@ It's the perfect mix of texture and flavor. I had this with some turkey that
would have otherwise gone to waste and it was very good. would have otherwise gone to waste and it was very good.
2022-06-20: Some thinks I've been thinging about 2022-06-20
: Some thinks I've been thinging about
The world would be a more interesting place if any biologists or The world would be a more interesting place if any biologists or
researchers focusing on transmissable diseases took a look at Internet memes or researchers focusing on transmissable diseases took a look at Internet memes or
@ -3902,7 +3963,8 @@ bisexuals". The latter for acceptance (exceptance?) from those who conduct the
former. All wins temporary at best. former. All wins temporary at best.
2022-06-19: Some things I've been thinking about 2022-06-19
: Some things I've been thinking about
The UNIX philosophy ("create things that do one thing well") is a The UNIX philosophy ("create things that do one thing well") is a
mandate rather than a suggestion; programs can and will fall under their own mandate rather than a suggestion; programs can and will fall under their own
@ -3934,6 +3996,3 @@ trust them a bit more than a bald guy on Spotify.
Today's Juneteenth, which is a memory to a pretty cool event, the end Today's Juneteenth, which is a memory to a pretty cool event, the end
of lawful slavery in the United States. of lawful slavery in the United States.
</PRE>
</BODY>
</HTML>