Thank you for providing the easiest and most portable answer. This will handle files with special characters perfectly unlike most of the responses here which rely on a while loop (to say nothing of a for loop ).
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
- 55 Comments
Shell scripts are one of the worst possible applications of an LLM. They’re trained on shit fucking GitHub scripts, and they give you shit in return.
You may have a bit of a hard time finding something that’s completely FLOSS that’s not on the older side (the sar visualizer being a Java desktop application being a consequence of that age). There are various ways to dump resource usage into a time series database like Prometheus (Apache2), InfluxDB (Apache2/MIT), or VictoriaMetrics (Apache2) and then visualize it with a frontend (Grafana, APGL). The database is going to be the tricky part. All of the time series DBs I’m aware of are permissively licensed. Grafana may be a good fit for you, however. It’s written in Go so it’s relatively light, although it obviously requires a browser to interact with.
Badabinski@kbin.earthto
Technology@lemmy.world•Microsoft’s latest Windows 11 update improves and breaks dark mode
5·11 days agoArch is a pretty good one if you want to control and tinker. I have personally found it to be very reliable over the years, and the AUR is exceptionally powerful (although you NEED to review your PKGBUILDs, there’s nothing stopping someone from putting malware on the AUR again). The packaging format is so simple and easy that I actually build a few performance-critical packages locally so I can tweak compiler flags (gimmie that
-march native).Nix is cool and kinda crazy, but honestly? I’d hold off until you’re comfortable with Arch. Same with Gentoo.
It does, the repo is tagged as AGPL.
Badabinski@kbin.earthto
Games@lemmy.world•Indie game developers have a new sales pitch: being ‘AI free’
173·20 days agoYou mean code completion that just parses a file into an AST and does fuzzy string matching against tokens used to build that AST? I would not personally classify that as AI. It’s code that was written by humans and is perfectly understandable by humans. There is no probabilistic component present, there is no generated matrix, there’s no training process, it’s just simple parsing and string matching.
It’s early and I’m tired and probably in a poor mood and being needlessly fussy, so I apologize if this completely misses the point of your comment. I agree that there’s other stuff we’ve been using for ages which could be reasonably classified as “AI,” but I don’t feel like traditional code completion systems fit there.
Badabinski@kbin.earthto
Technology@lemmy.world•Rebble · Core Devices Keeps Stealing Our Work [Update: see comment]
51·27 days agoYep, this is why we use GPL! Using a permissive license is like lending money to a friend—you should never, ever expect to get your money back. “Good” companies aren’t altruistic, they’re ruthlessly self-interested. They’re not going to give back to your project unless there’s a damn good reason for them to do so. There are times when permissive licenses are totally fine (like when writing some kinds of libraries), but if you care about freedom of an application then you should stay the fuck away from MIT, Apache, BSD, or any other permissive license. Just use the GPL, folks.
edit: Using GPL from the getgo would have prevented this atrocity from occurring: https://github.com/coredevices/libpebble3/commit/35853d45cd0ec51cb732be866f6f72467653a613
They couldn’t have relicensed the project without community approval if it had been using a copyleft license in the first place.
Also, fuck off with your fucking AGPL license with a copyright transfer CLA bullshit. I’d love to see a new version of the AGPL that expressly prohibits copyright transfers. Never let a company take your rights away from you. A copyright license makes even the GPL effectively meaningless if the company wants to rug pull at a later date.
Badabinski@kbin.earthto
Technology@lemmy.world•Unremovable Spyware on Samsung Devices Comes Pre-installed on Galaxy Series Devices
382·27 days agoYeah, that’s a “block and move on with your day” sort of account for sure.
Badabinski@kbin.earthto
Technology@lemmy.world•Americium: How a small element could power the next century of space exploration
4·28 days agoYep, and it’s still used in some new ones.
Was this done according to proper clean-room design principles? If so, then imo the GPL is still working as intended. The company had to spend a fuckton of money and time getting one engineer to read the source and describe what was done to other engineers, and then ensure that one engineer never ever worked on the project again.
If they didn’t do that then they violated the GPL and someone should report them to the SFLC.
Badabinski@kbin.earthto
PC Gaming@lemmy.ca•Lethal Company developer says the freedom afforded by text adventure design is why his latest game [Welcome to the Dark Place] took 10 years to make
9·1 month agoIt’s amazing that he released the game for free, given the amount of time he’s spent on it.
Badabinski@kbin.earthto
Technology@lemmy.world•Nvidia reveals Vera Rubin Superchip for the first time — incredibly compact board features 88-core Vera CPU, two Rubin GPUs, and 8 SOCAMM modules
4·1 month agoYeah, 88/2 is weird as shit. Perhaps the GPUs are especially large? I know NVIDIA has that thing where you can slice up a GPU into smaller units (I can’t remember what it’s called, it’s some fuckass TLA), so maybe they’re counting on people doing that.
Badabinski@kbin.earthto
Linux@lemmy.ml•[Q] Is it possible to reinstall Linux without losing Dropbox?
26·1 month agoThis is the most important piece of information. You should edit the post and/or title to make this more clear.
Open source can be enshittified. FOSS with many contributors should be basically proof against being fucked with.
Badabinski@kbin.earthto
Linux@lemmy.ml•(Solved) How do I make flock ignore a nohup process?
2·2 months agothe
fstands for file. The c manpage has some details on how it works: https://www.man7.org/linux/man-pages/man2/flock.2.html
Badabinski@kbin.earthto
Technology@lemmy.world•Bezos plan for solar powered datacenters is out of this world… literally
2·2 months agoYeah, I think it’d be a pretty silly thing for us to ever try to do. My goal was to take their stupid idea, provide a slightly less stupid idea, and then say “or just don’t do space power at all and keep everything terrestrial.” Orbital solar power stations were lots of fun in science fiction, but panels are cheap, there’s plenty of land, and giant death masers that cook any birds flying into the beam are, uh, suboptimal.
Badabinski@kbin.earthto
Technology@lemmy.world•Bezos plan for solar powered datacenters is out of this world… literally
111·2 months agoWe’ve had the template for this for decades. Put the solar panels in space where the thick soupy gunky spunky atmosphere doesn’t stop the little energy things from the sun. Collect the power in orbit. You just do that up there up in orbit okay? And then you fucking beam the power down to the surface you numpty fucks. Use a maser to send the power down to the surface and you can pick a frequency that isn’t affected by the gunky spunky and then the receivers on the ground can pick it up and they send the power through these things called wires to a building that uses the power and the building can use this neat little thing called CONVECTION to more efficiently remove the heat from the things using the electricity wow.
Or just, y’know, use less power and make use of ground based solar. We don’t need fucking AI data centers in space. Don’t get me wrong, I think it might be useful to, say, have some compute up in geostationary orbit that other satellites could punt some data to for computation. You could have an evenly spaced ring of the fuckers so the users up there can get some data crunching done with a RTT of like 50ms instead of 700ms. That seems like a hard sell, but it at least seems a bit tenable if you needed to reduce the data you’re sending back to the earth down to a more manageable amount with some preprocessing. That is still not fuckass gigawatt AI data centers. Fuck
Badabinski@kbin.earthto
Technology@lemmy.world•AI Coding Is Massively Overhyped, Report Finds
12·3 months agoOh god, please don’t use it for Bash. LLM-generated Bash is such a fucking pot of horse shit bad practices. Regular people have a hard enough time writing good Bash, and something trained on all the fucking crap on StackOverflow and GitHub is inevitably going to be so bad…
Signed, a senior dev who is the “Bash guy” for a very large team.


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.