Compare commits
No commits in common. "38204abcab9b74d4a409e6784ecd470edc95eaee" and "8f92680df339201437aae1956227066f89dfc065" have entirely different histories.
38204abcab
...
8f92680df3
58
cbz/cbzcat
58
cbz/cbzcat
@ -1,58 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
usage(){
|
|
||||||
printf "Usage: %s [files...]\n" "$0"
|
|
||||||
exit 64 # sysexits.h(3) EX_USAGE
|
|
||||||
}
|
|
||||||
|
|
||||||
test -n "$2" \
|
|
||||||
|| usage
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
d="$(mktemp -d)"
|
|
||||||
mkdir "$d"/x
|
|
||||||
|
|
||||||
i=1 # index
|
|
||||||
il=1 # index length in digits
|
|
||||||
|
|
||||||
for f in "$@"; do
|
|
||||||
test -e "$f" \
|
|
||||||
|| usage
|
|
||||||
|
|
||||||
unzip -d "$d"/x "$f"
|
|
||||||
rm "$d"/x/*.xml
|
|
||||||
|
|
||||||
for g in "$d"/x/*; do
|
|
||||||
# move file to indexed position
|
|
||||||
printf '%s\n' "$g" \
|
|
||||||
| sed 's|^.*\.||' \
|
|
||||||
| xargs printf '%s/%s%s\n' "$d" "$i". \
|
|
||||||
| xargs mv "$g"
|
|
||||||
|
|
||||||
# increment i
|
|
||||||
i="$(printf '1 + %s\n' "$i" | bc)"
|
|
||||||
|
|
||||||
# if there aren't enough leading zeroes
|
|
||||||
if ! printf '%s' "$i" \
|
|
||||||
| wc -c \
|
|
||||||
| xargs test "$il" =; then
|
|
||||||
for g in "$d"/*
|
|
||||||
do test "$g" = "$d"/x \
|
|
||||||
|| printf '%s\n' "$g" \
|
|
||||||
| sed 's|[^/]*$|0&|' \
|
|
||||||
| xargs mv "$g"
|
|
||||||
done
|
|
||||||
# update index digit length
|
|
||||||
il="$(printf '1 + %s\n' "$il" | bc)"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
done
|
|
||||||
|
|
||||||
rm -r "$d"/x
|
|
||||||
|
|
||||||
zip -Z deflate out.cbz "$d"/*
|
|
||||||
|
|
||||||
rm -r "$d"
|
|
79
homepage
79
homepage
@ -525,85 +525,6 @@ pre { /* DRY who? */
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/blah/2024-02-29.html
|
|
||||||
|
|
||||||
I have a graphical environment on this netbook and honestly, what more do I
|
|
||||||
need? I don't have the mouse working but don't really need it, I only use foot
|
|
||||||
terminal windows in sway anyway.
|
|
||||||
|
|
||||||
- WAYLAND! I am using Wayland now. I don't notice much of a difference (except
|
|
||||||
that there's no helpful sway introduction like there was an i3 introduction,
|
|
||||||
and I had to make my configuration myself). I want binary space partitioning in
|
|
||||||
this like bspwm - or at least a mockery of it.
|
|
||||||
|
|
||||||
Yesterday was my first day off in a while and I quite enjoyed it. I have 14
|
|
||||||
hours racked up in Pok`emon White (no compose key set up yet) and did my taxes,
|
|
||||||
which were only slightly more of a pain because of jobs in both Maine and
|
|
||||||
Colorado, thanks to the lovely FreeTaxUSA.com.
|
|
||||||
|
|
||||||
I've met two people here who spontaneously brought up the subject of Maine: a
|
|
||||||
co-worker and a bus driver. The co-worker was infatuated with the concept of
|
|
||||||
Maine after seeing a one-act play about people who watched the aurora in Maine.
|
|
||||||
I don't know, maybe you can see it way up North in Caribou or Limestone or
|
|
||||||
Presque Isle, but I never saw a fucking aurora borealis in Maine and I lived
|
|
||||||
there 20 years, so I don't know who they (the playwrights) are kidding. Well,
|
|
||||||
actually I do - they're a kid named [...]. "Kid" in the perjorative fashion,
|
|
||||||
they're 19 and probably mature, they just seem like a kid to me and also seem
|
|
||||||
to have a crush on me. Is my Maine accent noticeable? The bus driver was
|
|
||||||
telling me he'd been to every United State except Alaska, North Dakota,
|
|
||||||
Missouri, and - finally, and I said the word with him - Maine. I knew he'd say
|
|
||||||
it because Kami told me and he talked about how Maine is too haunted and he
|
|
||||||
never wanted to step foot there. I laughed and said he was right and showed him
|
|
||||||
my Maine state I.D. - now hole-punched as I am officially a Coloradan.
|
|
||||||
|
|
||||||
One of my co-workers thinks I am the anti-Christ and will not speak to me, not
|
|
||||||
a word of even "good mornin'" or "have a g'night". Thank goodness because they
|
|
||||||
are dry as fuck and talk about conspiracy theories every waking moment.
|
|
||||||
|
|
||||||
For some reason unplugging and replugging this ke board is making it unable to
|
|
||||||
reconnect. The built-in ke board on this netbook has a bad ke :
|
|
||||||
[ Q ][ W ][ E ][ R ][ T ][ ][ U ][ I ][ O ][ P ]
|
|
||||||
|
|
||||||
Hmm. Switching over to a tty and unplugging and replugging, I got no errors in
|
|
||||||
dmesg. And now it works in sway again. So who knows.
|
|
||||||
|
|
||||||
My website is still broken so these blog posts (since after 2024-01-03) won't
|
|
||||||
show up.
|
|
||||||
|
|
||||||
I wrote my first full program in Rust (error handling, option parsing) this
|
|
||||||
month, swab(1) for Bonsai. I can't believe March begins tomorrow.
|
|
||||||
|
|
||||||
The plan is that I will be put on the lease in one of the following months. I
|
|
||||||
think that means I'm officially no longer homeless.
|
|
||||||
|
|
||||||
I went on a date with a really weird dude. I should probably just stick to
|
|
||||||
women. I want someone I love to do something to me in a way that affects me
|
|
||||||
physically that is reprehensible - I don't want someone I don't love to do
|
|
||||||
something that only slightly affects me that is reprehensible. You get me?
|
|
||||||
|
|
||||||
The 4chan/b/ rabbit eye story still messes with me. So does fluffy torture.
|
|
||||||
Nothing else on /b/ really made me as wacked out as that. But I couldn't look
|
|
||||||
away.
|
|
||||||
|
|
||||||
I really love how my computer looks. I love typing on it.
|
|
||||||
|
|
||||||
nyaa
|
|
||||||
|
|
||||||
|
|
||||||
/blah/2024-02-28.html
|
|
||||||
|
|
||||||
: notes on installing sway on this alpine machine
|
|
||||||
|
|
||||||
# apk add \
|
|
||||||
libinput \
|
|
||||||
libudev-zero \
|
|
||||||
mesa-dri-gallium \
|
|
||||||
seatd seatd-openrc
|
|
||||||
# usermod -aG seat $USER
|
|
||||||
# rc-update add seatd default
|
|
||||||
# rc-service seatd start
|
|
||||||
|
|
||||||
|
|
||||||
/blah/2024-02-26.html
|
/blah/2024-02-26.html
|
||||||
|
|
||||||
Days since my last day off from work: 32.
|
Days since my last day off from work: 32.
|
||||||
|
Loading…
Reference in New Issue
Block a user