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.
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.
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.
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.
this is my current solution; I use Obsidian to manage my notes and I sync the folder with Syncthing. I still use Google Keep though for its whiteboard tool; is there a better app for that?
updated post here, includes section on networking! let me know if this looks good? https://lemmy.world/post/2444639
ah, thank you! it’s actually been long enough that I created a new post here: https://lemmy.world/post/2444639
Very high praise! Let me know what they find helpful or frustrating!
ah, well spotted! I’ll fix that, whoops
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!
I’ve changed my naming scheme so many times that its practically a set-of-sets at this point. But, “board games” is a good long one if you have a lot of machines.
I add .env to my .gitignore, then I can safely put secrets in my .env. If you have a big .env file, make a sample.env with the secrets removed.
actually, could you tell me more? not only are those new solutions to me, those are new problems. I don’t even know how to tell if uPnP is turned on.
edit: oh! I have actually dealt with NAT reflection before, the guide I used called it Hairpin NAT. https://help.mikrotik.com/docs/display/ROS/NAT#NAT-HairpinNAT
I wish I had a better guide on that myself! I’ve been using this guide for the time being, it covers the basics of how to set up a firewall: https://www.raspberrypi.com/documentation/computers/configuration.html#securing-your-raspberry-pi
I have to consciously remember to brush my teeth every time too, or maybe I notice my mouth tastes bad and that prompts me to do it, but I don’t have like a little “bedtime routine script” inside my head that I can push “play” on. Maybe it’s always hard for everyone and neurotypical people are just lying about habits?
its dead serious; I have adhd too and every single time I exercise is as hard as the first time, autopilot never kicks in
I agree in theory, but in practice, when Google dropped RSS and XMPP support it took most of my friends with it, which is what started this mess in the first place. I’m actually not a fan of mastodon; feels too ambitious to start a new protocol without a killer app. RSS and XMPP are extensible protocols and I really just want modern support for those.
Won’t this delete the two newest files, as opposed to everything except the two newest files?