Files verified
From: Unkmar Via chugalug
------------------------------------------------------
I do still exist. I do still code.
I spent around an hour creating the code below to save more than 50
hours of work.
Not just 50 hours. But tedious, boring hours of carefully paying
attention to an equivalent of
grass growing.
My original code doesn't have comments.
Reasons:
1. I don't expect to reuse it. (One shot)
2. It is only 23 lines of code including empty lines.
-- Lucius L. Hilley III
PS: There might be some errors in the code because after my copy/paste.
I munged some personal details, added comments and changed a couple
variable names. The original code is perfectly functional. This modified copy
might have a few typos and syntax errors.
#!/bin/bash
internal=/home/user/Videos/obs
external=/run/media/user/Expansion/user/Videos/obs
cd $internal
# 7z is short of 7zip which is a compressed file
# f1 and f2 mean filename 1 and 2. Suppose to be same data, just one
is compressed
# The reason for the double quotes. My filenames have spaces. Such as:
"date hour.mkv.7z"
#h1 and h2 mean hash one and 2. In this case, I am using sha256.
# This for loop to get filenames of each file ending with "7z" in
$internal directory
for f1 in *.7z; do
# Strip the ".7z" from the end of each filename
f2=$(echo "$f1" | sed 's/\.7z$//')
# Get the hash of the file inside the 7z file
h1=$(7z t "$internal/$f1" "$f2" -scrcSHA256 | grep 'for data'
| sed 's/.*: *//')
h2=$(sha256sum "$external/$f2" | sed 's/ .*$//')
# If the hashes match, Remove the compressed file.
# I know that removing the compressed file seems backwards.
# I have plenty of space on the external drive. But my
internal is at a premium.
if [ "$h1" == "$h2" ]; then
rm "$internal/$f1"
else
# Report if the hashes on match.
# This isn't needed because the compressed file will still be
hanging around as evidence.
echo $h1 $f1
echo $h2 $f2
echo "FAIL"
fi
done
===============================================================
From: Michael Harrison Via chugalug
------------------------------------------------------
I can't imagine you "not coding"... :)
I'm not up for 12-36 hour sessions anymore. But 2+ with good music is still
what I aim for every day.
Been enjoying some Cad (FreeCad of course) projects.. Same but slightly
different vibe. More visualization involved.
Tweaks worked (so far) - gmail seems to be happy, as well as standard
Linux/Postfix/Dovecot/ and Alpine/Roundcube and raw text.
Seems to be some header rewriting going on. For example, I
specifically send: chugalug
and it ends up being: chugalug .
Am going to take a walk, and then check it all again.
On Wed, Mar 4, 2026 at 7:30=E2=80=AFPM Unkmar Via chugalug
wrote:
d