Comments

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

glibg10b, to mildlyinteresting in This 9v battery contained six cells stacked like a layer cake

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

glibg10b, (edited ) to linux in Reminder to clear your ~/.cache folder every now and then

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, to linux in Reminder to clear your ~/.cache folder every now and then

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, to lemmyshitpost in Anon does a little trolling

We have 15 months now?

glibg10b, to linux in Reminder to clear your ~/.cache folder every now and then

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

glibg10b, to linux in Reminder to clear your ~/.cache folder every now and then

/run/ contains such a directory

glibg10b, to linux in Reminder to clear your ~/.cache folder every now and then

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, to programmer_humor in Programmer tries to explain binary search to the police

Without binary search, we would not have search engines today

glibg10b, to memes in toilet humour

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

glibg10b, (edited ) to lemmy_support in details-summary HTML tags treated as literals (~~BUG or~~ SUE)

For reference:


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

SummaryDetails

glibg10b, to comicstrips in "Counting the Days" by PortSherry

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

glibg10b, to memes in Never change Lemmy
glibg10b, to memes in Never change Lemmy

I was there when it was written

glibg10b, to lemmy_support in Blocking instances does not work
glibg10b, to linuxmemes in I bet the rest of the world has better paper

I like both Wayland and systemd

Name one init system that boots as fast as systemd on a modern distro with many services. Then name a display server that’s actually easy to maintain and to develop client applications for

The current issues with Wayland are due to it being new, X11 fanboys not wanting to explore the idea of contributing to Wayland, and client applications that are poorly designed

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