klay

joined 1 year ago
[–] klay@lemmy.world 6 points 1 year ago

Won't this delete the two newest files, as opposed to everything except the two newest files?

[–] klay@lemmy.world 7 points 1 year ago (3 children)

I just looked up the man page, and actually head -n -2 means "everything up to but not including the last two lines", so this should always leave two files remaining.

[–] klay@lemmy.world 5 points 1 year ago* (last edited 1 year ago) (2 children)

Ah! This is a shell pipe! It's composing several smaller commands together, cool stuff.

  • ls -1 is the grep-friendly version of ls, it prints one entry per line, like a shopping list.

  • head takes a set number of entries from the head of a list, in this case ~~2 items.~~ negative two, meaning "all but the last two."

  • xargs takes the incoming pipe and converts it into extra arguments, in this case applying those arguments to rm.

So, combined, this says "list all the .dump files, pick ~~the first two,~~ all but the last two, and delete them." Presumably the first are the oldest ones and the last are the newest, if the .dump files are named chronologically.

[–] klay@lemmy.world 1 points 1 year ago (3 children)

Worth noting that Steam doesn't track playtime for non-Steam games. So this doesn't include Minecraft, Retroarch, or anything purchased through Itch, GOG, or Epic.

[–] klay@lemmy.world 7 points 1 year ago (1 children)

True... the trouble with open source is that nobody's getting paid to add features you want, huh.

[–] klay@lemmy.world 2 points 1 year ago (3 children)

I'm excited! But why not Minetest? :p

[–] klay@lemmy.world 6 points 1 year ago (2 children)

I don't mind waiting a bit. If the system works, the users will come eventually.

[–] klay@lemmy.world 2 points 1 year ago

I mean, there's Stackoverflow, and Steamcommunity. It can be done. I'd just like to see federation tackle it.

[–] klay@lemmy.world 6 points 1 year ago (1 children)

Right, which defeats the purpose of the "fediverse" imo.

 

I love the idea of the fediverse, but the killer feature of reddit is its search results, and so far there doesn't seem to be much of a public search for lemmy/mastodon. What are some search-friendly sites I could spend my time and money on?

 

Updated my self-hosting tutorial based on suggestions from last time. The biggest change is the new chapter on network security. If anyone out there is a security nerd I'd love your feedback! I tried to strike a balance between playing it safe and getting something into production.

[–] klay@lemmy.world 1 points 1 year ago

Hear hear! I thought I didn't like the fediverse because Mastodon did such an awful job selling it to me. "Oh, I can't view other instances' local timelines without making accounts on them? What's even the point of federation then?" But on Lemmy you can easily browse communities outside your own instance. So it's not the fediverse's fault, Mastodon just doesn't have a clear audience.

And yeah, I can see how a lot of Mastodon's features are "privacy-focused", but I think it does TOO good a job, it's so private that you can't find anything!