I’m curious how software can be created and evolve over time. I’m afraid that at some point, we’ll realize there are issues with the software we’re using that can only be remedied by massive changes or a complete rewrite....
I am writing #!/usr/bin/env sh for dead simple scripts, so they will be a tiny bit more portable and run a tiny bit faster. The lack of arrays causes too much pain in longer scripts. I would love to use Fish, but it lacks a strict mode.
No, why would I?
I used to share all my dotfiles, scripts included, but I was too afraid that I would publish some secrets someday, so I stopped doing that. For synchronizing commands, aliases and other stuff between computers I use Chezmoi.
To use Fish instead of fighting with start up time of Zsh with hundreds of plugins
Always use the so-called “strict mode” in Bash, that is, the set -euo pipefail line. It will make Bash error on non-zero exit code, undefined variables and non-zero exit codes in commands in pipe. Also, always use shellcheck. It’s extremely easy to make a mistake in Bash. If you want to check the single command exit code manually, just wrap it in set +e and set -e.
Consider writing your scripts in Python. Like Bash, it also has some warts, but is multiplatform and easy to read. I have a snippet which contains some boilerplate like a main function definition with ArgumentParser instantiated. Then at the end of the script the main function is called wrapped in try … except KeyboardInterrupt: exit(130) which should be a default behavior.
Absolutely not a bad practice. If you need to use them on a remote server and can’t remember what they stand for, you can always execute type some_command. Oh, and read about abbreviations in Fish. It always expands the abbreviation, so you see what you execute.
A few months ago, I rolled back to a previous btrfs snapshot using Snapper. Now I am constantly running out of space, no matter how many packages I delete and I’m wondering if that is the reason. The snapshot list looks like this:...
I don’t have the “Used space” column, probably because I have quota disabled. I managed to find out using btdu, that the snapshot 1137 takes ~8.3 GiB.
I cannot delete it using that command, because it is marked with “+” which means it is the “btrfs default subvolume”, according to snapper manual. I wonder if there is still a way to get rid of it.
Fighting with flying robots who are protecting supposedly scarce and valuable resources that are in fact not worth a dime, restore after a few minutes and are only needed for quests
No, I think they meant that you get better resource usage when you install an app as a Flatpak instead of a system package. You get the same benefit in a traditional distro too, if you use Flatpaks, it’s just that immutable distros kind of force you to use them.
When installing the proprietary nvidia driver recommended by the the official debian page for Debian Bookwork, apt seems to want to install a new kernel. I actually did this before (since this is my second time installing debian on here) and this new kernel messes with the display server somehow, disabeling all monitors but one,...
I’m planning on moving (back) to Linux from Windows, but I’m not sure which desktop environment I want to use. What’s the easiest way to try them all out? Just do a bunch of dnf/apt installs? Is there a distro or project out there that makes this easier?...
Well, I wouldn’t really say that it’s used as a Windows replacement at the company I’m working at, because all the business stuff is still being done using Windows, but almost all developers are using Linux. I was even allowed to replace Ubuntu with Arch, because I was annoyed by outdated packages. Because of the higher freedom, I can even tolerate the slightly smaller pay rate and benefits that I could earn elsewhere.
The current Marshal of the Sejm is a showman. He was a host of the Polish version of Got Talent. He often says funny retorts and is less uptight than other Marshals. Some even call the live stream “Sejmflix” now.
But also members of the previous ruling party, PiS, are like… super stupid. I don’t know if populist parties are like that everywhere, but PiS politicians often say things so ridiculous, that they are just funny. Well, they weren’t so funny, when they had a majority.
I am using the Xbox One controller. I had to pair it with Windows once to fix a connection problem, but now it’s problem-free. I’m pretty sure that the problem and solution was described on Arch Wiki but I can’t find it now. Basically it was stuck on disconnecting and connecting again until Windows didn’t update its firmware
I switched to Tidal after Spotify suddenly killed the API libspotify was using.
It takes a while for Tidal to “learn” what kind of music I like. I think Spotify got it sooner. Now the recommendations are pretty good.
I hate that they copied the weird queue management from Spotify. What can’t I just tell the player to play another album after the one that is currently playing finishes? It surprises me it is not a more common compliant.
I used Plex for my home media for almost a year, then it stopped playing nice for reasons I gave up on diagnosing. While looking at alternatives, I found Jellyfin which is much more responsive, IMO, and the UI is much nicer as well....
I have been considering selling my 3060 ti and buying a 6700 xt for a while now. The main reasons are (potentially) switching to wayland, +4 gb of vram, hardware acceleration in firefox (and steam too, it’s leaking vram for me with nvidia), potentially vr on linux with my quest 2 (a lot of things in alvr seem to be locked for...
Finally made the move (lemmy.world)
Just don’t ask how long it took to get my dGPU working properly :D But thankfully, there were a bunch of helpful folks with tips!
Deja Rule (beehaw.org)
What do you think will happen if we don't pass the aid for Ukraine?
Are there any things in Linux that need to be started over from scratch?
I’m curious how software can be created and evolve over time. I’m afraid that at some point, we’ll realize there are issues with the software we’re using that can only be remedied by massive changes or a complete rewrite....
OpenSUSE has the best installation menu of any OSs ever made (lemmy.ca)
Linux Mint 22 Adopts PipeWire, New Linux Kernel Cadence - OMG! Ubuntu (www.omgubuntu.co.uk)
General Advice for shell scripts
What do you advice for shell usage?...
what do you wish you did when you were 18?
Is the snapshot, I rolled back to using Snapper, still taking space?
A few months ago, I rolled back to a previous btrfs snapshot using Snapper. Now I am constantly running out of space, no matter how many packages I delete and I’m wondering if that is the reason. The snapshot list looks like this:...
Games rule (lemmy.world)
rulecinization juice (lemmy.cafe)
Why use immutable Linux ? And which one ?
What are the pros and cons for desktops ? EDIT : Thanks all. I’ll try Silverblue, bazzite and more.
rule (lemmy.ml)
Installing nvidia driver installs a new kernel [SOLVED, LOOK IN THE COMMENTS]
When installing the proprietary nvidia driver recommended by the the official debian page for Debian Bookwork, apt seems to want to install a new kernel. I actually did this before (since this is my second time installing debian on here) and this new kernel messes with the display server somehow, disabeling all monitors but one,...
I understand not only the what, but the why (lemmy.world)
Easy way to try out a bunch of different DEs?
I’m planning on moving (back) to Linux from Windows, but I’m not sure which desktop environment I want to use. What’s the easiest way to try them all out? Just do a bunch of dnf/apt installs? Is there a distro or project out there that makes this easier?...
Linux in the corporate space
I made this post because I am really curious if Linux is used in offices and educational centres like schools....
People outside of the USA: What are some interesting, cool, or fascinating aspects of your country you'd like to share with the world?
deleted_by_author
Recommend Me: a wireless game controller
I need a wireless controller for my linux laptop (Kubuntu 23.04)....
Spotify vs Tidal - worth switching?
Which one do you prefer?...
What are some FOSS programs that you think are a far better user experience than their counterparts? (sh.itjust.works)
I used Plex for my home media for almost a year, then it stopped playing nice for reasons I gave up on diagnosing. While looking at alternatives, I found Jellyfin which is much more responsive, IMO, and the UI is much nicer as well....
Should I switch to amd?
I have been considering selling my 3060 ti and buying a 6700 xt for a while now. The main reasons are (potentially) switching to wayland, +4 gb of vram, hardware acceleration in firefox (and steam too, it’s leaking vram for me with nvidia), potentially vr on linux with my quest 2 (a lot of things in alvr seem to be locked for...