glibg10b

@glibg10b@lemmy.ml

This profile is from a federated server and may be incomplete. Browse more on the original instance.

glibg10b,

It’s likely. mkdir fails to create a subdirectory such as ~/.cache/mozilla/ if ~/.cache/ doesn’t exist, unless -p is explicitly passed to mkdir

Of course, not everything is a shell script, but I imagine the directory creation functions in many languages work similarly

glibg10b,

/run/ contains such a directory

glibg10b,

This seems like a filename conflict waiting to happen. Why not just mount a tmpfs there?

glibg10b,

You: It’s a single user system
Also you: Tmpfs would have to be done for every user

And a /tmp/ symlink would have to be created for every user too, so I don’t get your point

Tmpfs is just as easy as making a symlink, but without the filename conflicts between files in ~/.config/ and /tmp/. You just need to add a line to /etc/fstab

glibg10b, (edited )

Neat, thanks for sharing

Here’s the above pseudocode in bash:


<span style="color:#323232;">find /home/ -mindepth 1 -maxdepth 1 -type d -exec mount none {}/.cache/ -t tmpfs -o size=16G </span><span style="color:#0086b3;">;
</span>

for doesn’t work here because it uses spaces to delimit strings, which could cause issues with filenames that contain spaces

You can also create a systemd user service, which is useful if you don’t have root access. The above mount command requires root, but the following doesn’t and is more robust than symlinking to /tmp/:


<span style="color:#323232;">ln -s $(mktemp -dp /var/tmp/) ~/.config/
</span>
glibg10b,

there’s only two genders

People speak like this often enough that it’s considered informal speech, not bad grammar

More examples:

There’s two ways this can go

There’s two ways to look at it

Here’s a few posts on this topic:

…stackexchange.com/…/is-therere-similar-to-theres…

…stackexchange.com/…/there-is-vs-there-are-when-c…

…stackexchange.com/…/here-is-are-followed-by-plur…

So she’s still an idiot, just not for this reason

glibg10b,

Without binary search, we would not have search engines today

Sites for downloading high quality music files

I am making a script that can download high quality music files, currently from free-mp3-download.net and slavart.gamesdrive.net. Are there any others? I could look into torrenting things automatically and maybe looking into Lidarr? Not 100% on how that works but any ideas on what else I could add or links to other places I can...

glibg10b,

Those happen to be two of the three I have in my bookmarks, the third being doubledouble.top

Just moved to Linux: a follow up

I recently made a post discussing my move to Linux on Fedora, and it’s been going great. But today I think I have now become truly part of this community. I ran a command that borked my bootloader and had to do a fresh install. Learned my lesson with modifying the bootloader without first doing thorough investigation lol....

glibg10b,

Before you can fix a bootloader, you first need to learn how to install and set up a bootloader. I think most people learn that part when they try Arch

glibg10b,

You’d just be able to get around that using the API

glibg10b,

I’m feeling déjà vu reading this comment

glibg10b,

That’s the case for anything above 4 V, right?

glibg10b,

Looks like it’s 6 x 2.25 V

glibg10b, (edited )

For reference:


<span style="color:#323232;">::: spoiler Summary
</span><span style="color:#323232;">Details
</span><span style="color:#323232;">:::
</span>

SummaryDetails

glibg10b,

Why did I read this right to left? I’m not even into manga

glibg10b,

The Nano’s PWM frequency can be adjusted from the default 490 Hz, with a maximum of 4MHz, at which point the resolution is 4. At a resolution of 256 (which is more than enough for this application), the maximum PWM frequency is 62.5 kHz, which is far outside our hearing range, though can still barely be heard by some younger cats

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #