@bender@twtxt.net Haha fine 🤣
@prologic@twtxt.net where on IRC? Network, channel, nick? IRC is vast! It’s like saying, “meet me in Australia, and we go from there!” 😅
@javivf@adn.org.es Hit me up on IRC or something and we’ll get started 👌
@bender@twtxt.net it’s here!!!! i’m so happy with it :DDD hugo is awesome, i just found astro to be easiest to customize!
@kat@yarn.girlonthemoon.xyz so, where is the site? Show us, show us! I use Hugo exclusively, just a binary. My sites also build upon a commit, on my own VPS. 🙈
@kat@yarn.girlonthemoon.xyz i’m so obsessed like now i actually wanna play with the site more https://bytes.4-walls.net/kat/eunoia-astro
@prologic@twtxt.net hahahah i chose astro!
@prologic@twtxt.net noted!
tar
and find
were written by the devil to make sysadmins even more miserable
@movq@www.uninformativ.de yeahhh very true stuff. find is annoying af i just use fd when i can
@prologic@twtxt.net it’s so annoying!
@prologic@twtxt.net What can I do for you? :)
@kat@yarn.girlonthemoon.xyz You don’t need to change the directory first in line 11, you can just create the directory, that’s sufficient since you’re having an absolute path.
The echo
in line 13 is useless, you can simplify this to: newdir="$WD/$now"
If you reversed this line with the previous one, you could make use of the variable in the directory creation: mkdir "$newdir"
.
In line 16, pull the directory change out of the loop upfront. The loop body doesn’t modify the working directory, so no need to reset it with each cycle. In fact, you could even spare the cd
altogether when you simply tell find
where to look: find "$basedir" -type f…
.
I didn’t try it, but if I read the manpage correctly, you should be able to simplify line 19 as well:
-C Change to DIR before performing any operations. This option is order-sensitive, i.e. it affects all options that follow.
Hence, remove the cd
and put the -C "$WD"
as the first argument to tar
. Again, I didn’t try it. Proceed with caution.
Finally, you don’t need to specify the full path to rm
in line 21. I bet, /bin
is in your PATH
. When you removed the previous cd
from my last suggestion, the relative path that follows won’t work anymore. So, just use the absolute path that you already have in a variable: rm -rf "$newdir"
I hope you find this tiny review a wee bit useful. :-)
@kat@yarn.girlonthemoon.xyz Tux plushie is life, Tux plushie is best friend 🤘
tar
and find
were written by the devil to make sysadmins even more miserable
@kat@yarn.girlonthemoon.xyz @movq@www.uninformativ.de @prologic@twtxt.net Yeah, I’m also having them in my repertoire for ages, so I’m used to the weird command line options. From today’s perspective, they’re not consistent with the rest of the typical shell utilities, that’s for sure.
Regarding find | grep foo
, I recommend find -name '*foo*'
, prologic. Also, I regularly use -type d
and -type f
to find directories or files.
@kat@yarn.girlonthemoon.xyz Nothing wrong with handwritten HTML. That’s often superior to generated stuff I believe. :-)
tar
and find
were written by the devil to make sysadmins even more miserable
@movq@www.uninformativ.de Yeah I actually use sift a lot these days for most “searching” – at least code and text searching. For finding files by name I still use find | grep
.
tar
and find
were written by the devil to make sysadmins even more miserable
@kat@yarn.girlonthemoon.xyz @prologic@twtxt.net Given that all these programs are super old (tar
is from the late 1970ies), while trying to retain backwards-compatibilty, I’m not surprised that the UI isn’t too great. 🤔
find
has quite a few pitfalls, that is very true. At work, we don’t even use it anymore in more complex scenarios but write Python scripts instead. find
can be fast and efficient, but fewer and fewer people lack the knowledge to use it … The same goes for Shell scripting in general, actually.
@kat@yarn.girlonthemoon.xyz It’s also perfectly safe to nuke your cache as well. i.e: rm data/cache*
and it’s all good, things will just get rebuilt 👌
@kat@yarn.girlonthemoon.xyz I totally recommend zs 🤣 It powers all my sites! 😅 https://twtxt.dev https://yarn.socia/ https://prologic.dev etc 😎
@prologic@twtxt.net haven’t noticed anything weird in the logs! i’ll let you know if it happens again and monitor more closely though. it was def weird!
@kat@yarn.girlonthemoon.xyz Hmmm Please if this happens again, help me reproduce it. Any clues in the logs? Hmm? 🧐 My own pod has been running flawlessly for weeks now 😅
tar
and find
were written by the devil to make sysadmins even more miserable
@movq@www.uninformativ.de Same here, you do get used to things over time and build a sort-of “muscle memory”. But you’re right, maybe they have terrible interfaces and usage options? 🤔
tar
and find
were written by the devil to make sysadmins even more miserable
@movq@www.uninformativ.de the flags are SO WEIRD AND CONFUSING especially tar
which all look keysmashed and make no sense and the order matters apparently?!?! and find
is SO SLOW and when i look at a typical command for it on stack overflow it looks like fucking regex it’s EVILLLLL LMAO
tar
and find
were written by the devil to make sysadmins even more miserable
@kat@yarn.girlonthemoon.xyz What’s wrong with them? I’ve been doing this for so long now, I don’t see the issues anymore. 🤣 (Doesn’t mean they don’t exist.)
@eldersnake@we.loveprivacy.club awww ty! it’s mostly fun stuff and links to my friends :) the buttons have been revived by indie web folks and the people at neocities, it’s super fun!
@bender@twtxt.net I like to self-host 🤣
@prologic@twtxt.net you are certainly a special case of a luddite. Or you like to self-punish. Or both! LOL.
@bender@twtxt.net Yeah I know 😢 Don’t have Disney+, hell I don’t have many streaming services at all really 🤣
@prologic@twtxt.net yes, @xuu@txt.sour.is was the one who mention it. That’s on Disney+, though.
@bender@twtxt.net Ahh I see. That reminds me, I was going to start watching something someone recommended here hmmm 🧐
@prologic@twtxt.net LOL. It is from the Severance, AppleTV+ series. I am about to finish watching it with my kid—well, what’s available for seeing. The series is still ongoing. I recommend it!
@bender@twtxt.net Huh? 🤔
tar
and find
were written by the devil to make sysadmins even more miserable
@kat@yarn.girlonthemoon.xyz my terrible script https://bytes.4-walls.net/kat/dotfiles/src/branch/main/scripts/Scripts/tinypin-log.sh
@prologic@twtxt.net haha true ig! :‘)
@kat@yarn.girlonthemoon.xyz Ahh but you’re like one of a very few that actually own domains and do interesting things 😅
@bender@twtxt.net How do you explain mine then? Unless it was registered before me, then let go of and I re-registered it later? 🤔
@prologic@twtxt.net I will pull the email. The year is about right.
@bender@twtxt.net I’m not sure this is accurate, if you lookup mine:
$ whois shortcircuit.net.au 2>&1 | grep -i creat
created: 1986-03-05
I think this has to be the registrar’s creation date no? 🤔
@lyse@lyse.isobeef.org fuck yeah!!! glad you had some fun
@movq@www.uninformativ.de OH SHIT I TOTALLY FORGOT LOL! thanks for telling me! they’re just frontends for ultimate guitar - so these links
https://tabs.ultimate-guitar.com/tab/fifty-fifty/cupid-twin-version-chords-4667768?no_redirect
https://tabs.ultimate-guitar.com/tab/chappell-roan/good-luck-babe-chords-5191149?no_redirect
@kat@yarn.girlonthemoon.xyz These are behind a login. 🤔
Thanks to @kat@yarn.girlonthemoon.xyz and her shelf I finally spent several hours in the woodshop. I wanted to build two drawers for the workbench and thought that I will complete this project in no time. I’ve been so wrong again. ;-)
I didn’t draw any plans, just measured a few times and then went to cutting a bunch of particle board leftovers at the table saw. I routed rebates on the sides, fronts and backs to lap the boxes and sink in the bottom. It turned out that having no plans was a stupid idea. I cut exactly on the lines as I calculated and measured, however, the math in my head fell apart when it eventually met reality. The bottoms are too short, so I gotta glue on some strips. Also, with the longer fronts, the sides won’t work either, I have to fix them as well. :-D
Finally, the lid of my cyclone bucket broke when the negative pressure got too large. Oh well. It was just an old wood glue bucket, I’ve got another empty one, so I can use that lid but strengthen it first with some plywood. Something for future Lyse to deal with.
All in all, it was still good fun. Wood (haha) do it again, but at least with some sketches on paper. ;-)
@kat@yarn.girlonthemoon.xyz maybe i’ll try to incorporate it into my PHP fanlisting project if i can find a use for an HTMX component
@kat@yarn.girlonthemoon.xyz i wanna play with HTMX sometime T__T no energy….
@prologic@twtxt.net anubis is THE BESTTTTTTTTTTTTTT
@anth@a.9srv.net Congrats, that’s pretty cool! Quite some time, I’m impressed.
@prologic@twtxt.net You’ll sometimes find the “Creation Date” in whois
. Our domain was registered in 2009. Woah. That’s also been a while, crazy.
@movq@www.uninformativ.de Yup, that’s Mr. Compiler Explorer. :-)
@lyse@lyse.isobeef.org … and I realized only now that that’s the guy behind godbolt.org? I never assumed “godbolt” to be a human name, more like some kind of wordplay. 🥴
printf
?!)
@lyse@lyse.isobeef.org I agree with this sentiment 🙌