renzev

joined 1 year ago
[–] renzev 2 points 2 days ago

Yes exactly I'm mostly on-board with this flyer, I particularly like that tagline. But the inclusion of the EU flag is just completely bewildering to me, even as an EU resident myself. Are there really people out there who see the EU as some sort of bastion of freedom and justice?! Or is this some noncredibledefense-esque ironic meme that I'm too dumb to understand?

[–] renzev 8 points 1 week ago (1 children)
[–] renzev 2 points 1 week ago

No, one directory you need to backup for when things go sideways, and the other can go to /nev/dull.

This is why so many people have a separate git repository for their config files and a scripts that symlinks or copies those files into the actual ~/.config.

[–] renzev 14 points 1 week ago* (last edited 1 week ago)

Archwiki has a huge list of apps that do this with instructions on how to force them to not do this. You might find it useful.

Personally though, I've given up on wrangling stubborn apps and just use flatpak and docker for everything. It can't crap in your ~/ if it doesn't have access to it!

[–] renzev 11 points 1 week ago

XDG_DIR, Portals, Secrets, D-Bus, the Desktop file spec, Appstream… are there for you to read. 🥰

Standard compliance is a total mess in the world of linux desktop apps. My pet peeve is that $XDG_RUNTIME_DIR should point to a customizeable tmpfs that apps can use to store temporary data. But just TRY setting to anything else besides /run/user/1000 lol. Half your apps will be broken. Even apps that are made by/for the freedesktop people (e.g. Helvum, the pipewire patchbay app) struggle with this lol. This spec came out in 2021 -- three years ago -- and it's already ossified to the point of being barely useful. At this point I don't blame devs who say "fuck it" and just dump their tempfiles into /tmp the way ~~god~~ dennis ritchie intended.

[–] renzev 8 points 1 week ago
[–] renzev 1 points 2 weeks ago

Oh, damn, that was the joke!? Went right over my head lol

[–] renzev 1 points 2 weeks ago* (last edited 2 weeks ago)

Does your distro use pipewire by any chance? That would explain the lack of issues.

[–] renzev 2 points 2 weeks ago

Ah, yes, the notorious unfuck-audio.sh script. It's like a rite of passage for linux users.

[–] renzev 13 points 2 weeks ago

Huh, TIL

~ $ /bin/true --help
Usage: /bin/true [ignored command line arguments]
  or:  /bin/true OPTION
Exit with a status code indicating success.

      --help        display this help and exit
      --version     output version information and exit

NOTE: your shell may have its own version of true, which usually supersedes
the version described here.  Please refer to your shell's documentation
for details about the options it supports.

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation <https://www.gnu.org/software/coreutils/true>
or available locally via: info '(coreutils) true invocation'

I honestly don't know what I prefer more, the overengineered GNU true, or the true that shipped with some older system that was literally just an empty file with the executable bit set.

[–] renzev 2 points 2 weeks ago

When I said that Microsoft has a lot to learn from Linux, Ubuntu Server is not what I had in mind 😂

[–] renzev 3 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

Strange. I use windows 11 occasionally, and it's never even as much as mentioned onedrive to me. Could it be that it's a cracked install? Or that I never connected the local account to a microsoft account? Or that I'm in the EU?

Edit: Downvote? Really? Are you really that jealous that my windows experience is slightly less painful than yours!?

 
298
submitted 1 month ago by renzev to c/lemmyshitpost
 
 

 

Explanation for newbies:

  • Shell is the programming language that you use when you open a terminal on linux or mac os. Well, actually "shell" is a family of languages with many different implementations (bash, dash, ash, zsh, ksh, fish, ....)

  • Writing programs in shell (called "shell scripts") is a harrowing experience because the language is optimized for interactive use at a terminal, not writing extensive applications

  • The two lines in the meme change the shell's behavior to be slightly less headache-inducing for the programmer:

    • set -euo pipefail is the short form of the following three commands:
      • set -e: exit on the first command that fails, rather than plowing through ignoring all errors
      • set -u: treat references to undefined variables as errors
      • set -o pipefail: If a command piped into another command fails, treat that as an error
    • export LC_ALL=C tells other programs to not do weird things depending on locale. For example, it forces seq to output numbers with a period as the decimal separator, even on systems where coma is the default decimal separator (russian, dutch, etc.).
  • The title text references "posix", which is a document that standardizes, among other things, what features a shell must have. Posix does not require a shell to implement pipefail, so if you want your script to run on as many different platforms as possible, then you cannot use that feature.

 
 
 
 
 
 

It's funny when armchair experts insist that the fediverse won't catch on because "federation is too hard to understand" when arguably the most widespread communication system on the internet follows the same model

 
view more: next ›