Using ohmyzsh and not antidote? Blocked /s
Badabinski
Alt account of @Badabinski
Just a sweaty nerd interested in software, home automation, emotional issues, and polite discourse about all of the above.
- 0 Posts
- 158 Comments
Badabinski@kbin.earthto
linuxmemes@lemmy.world•Yeah, I should probably donate again or something
6·17 days agoYeah, I was being pretty thick earlier today. Oopsie!
Badabinski@kbin.earthto
linuxmemes@lemmy.world•Yeah, I should probably donate again or something
111·17 days agoIt was obvious and I was being a bit of a dummy this morning. Mea culpa.
Badabinski@kbin.earthto
linuxmemes@lemmy.world•Yeah, I should probably donate again or something
57·17 days agoIf you want a free and massive performance optimization, remove the
cat:fastWikiLookup() { grep "$@" ~/wikipedia.txt }Reading and piping 156 GB of data to another process every time you want to look something up is a somewhat nontrivial action. Grep can directly read the file, which should result in a pretty damn good speed up.
Hell, Bash provides filesystem-based sockets in
/dev/tcp, so a tcp connection can almost be like Unix sockets or anything else.I always found it weird that it was specifically provided by Bash…
Badabinski@kbin.earthto
Selfhosted@lemmy.world•Postiz v2.11.3 - open source social media scheduling tool! (creation modal refactored)
2·25 days agoSheesh, it’s 5 GB with
pnpm. Isn’t that meant to deduplicate dependencies?Anywho, it looks like
--prodisn’t being set in the Dockerfile, so dev dependencies are being included. I’m no node dev, but I remember this being something that people needed to set to shrinknode_moduleswithnpm. That might be an easy win.
Badabinski@kbin.earthto
Asklemmy@lemmy.ml•Why do schools look like prisons and are there any countries where they don't?
7·26 days agoMy public schools had teacher/student ratios up to 35-1. Good old Utah.
Badabinski@kbin.earthto
Asklemmy@lemmy.ml•Have there been shipwrecks that have been damaged by undersea communication cables (or even discovered because cables were being laid)?
4·27 days agoPiefed might support what they need at this point. I’ve heard the devs really focused on moderator tooling.
Badabinski@kbin.earthto
Linux@lemmy.ml•My desktop just shut down, and I'm not sure where to look for logs to figure out why
11·1 month agojournalctl -b -1will show you the logs from the previous boot.journalctl -k -b -1will do the same for the kernel logs. If you’ve rebooted again since, just use -2 instead of -1.
I don’t believe that does the same thing either. What if I lock my computer, sleep it, and step away for the day? I haven’t logged out, but my interactive session has ended.
Uptime shows how long the system has been up, not how long one has been interacting with the system.
idk who downvoted you, it’s a very common sentiment. I advocate for
<<<, but a pipe is often fine when performance doesn’t matter.
Idk, writing POSIX-compliant shell is so miserable that I avoid doing it when I can. You can use Bash on BSD and all other unixes, so it’s still a relatively portable solution.
I was waiting for someone to come along with this response lmao
I’m terrible at remembering shell string operation syntax, but this is the ultimate answer.
no pipe necessary, just
sed -E 's/TH|[EL ]|DO//g' <<<"$line"
Badabinski@kbin.earthto
Linux@lemmy.ml•How is there not a ubiquitous modding platform for Linux yet?
2·2 months agoIt does! The ease of exporting/importing mod packs as codes is part of what really sold me on it. r2modman’s UX around that task leaves something to be desired imo
Badabinski@kbin.earthto
Linux@lemmy.ml•How is there not a ubiquitous modding platform for Linux yet?
2·2 months agoIf you’re using r2modman, you should check out Gale. It’s basically a drop-in replacement that’s WAY faster and has far better UX in my opinion.
If they stop zigbee2mqtt from automagically updating their bulbs then they’re dead to me.
If you want more help with Bash in the future, this is the best resource I’ve found in 13 years of writing bash professionally: https://mywiki.wooledge.org/EnglishFrontPage
Bash FAQs and pitfalls are the primary sections to look at there.

If you want extreme flexibility, use Arch Linux, since it makes it trivial to swap out which window manager you’re using. It sounds like you’re familiar with Linux at this point, so you probably have the requisite knowledge to give Arch a spin.
Niri is supposed to be a pretty interesting WM if you’re looking for something new. I’d be interested to hear why i3 was too much, since I found it to be pretty smooth to pick up.