

Won’t this delete the two newest files, as opposed to everything except the two newest files?
Won’t this delete the two newest files, as opposed to everything except the two newest files?
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.
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?
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
Ultimately I think it’s sort of like Python and C#. Python got big by being easy to use, with great community management, and it took decades to reach its peak of popularity. C# got big because Microsoft threw a ton of money at people to use it. Of the two, Python’s popularity seems to be lasting longer.
I suspect this will be the case for all the new sites and protocols popping up in The Web 2.0 Crash, or whatever the history books call it. We’ll see a few sites like TikTok and Threads that “buy their friends”, get a ton of overnight popularity and then fade away, and we’ll get a few “institutions” that take their time building healthy communities over tens of years. ActivityPub didn’t wow me with Mastodon but I’m pleasantly surprised by Lemmy, so maybe the Fediverse will be one of those institutions… but personally I still think there’s room in the market for RSS to make a comeback.
If I were him I’d stand by that defense. It’s a carefully worded and sane defense. He’s not defending child abuse, he’s saying, extremely clearly and plainly, that possession of evidence is not the same as committing abuse, and that the law shouldn’t use possession as a scapegoat. Which, given that every attempt to censor the internet in the last 10 years has started with “protect the children”, I’d say he was trying to cut that tactic off at the head.
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.
That doesn’t answer the question, they asked if it’s open source. I agree, I don’t want to replace one sketchy data-harvesting service with another, I’d be a lot more comfortable giving shutup10 control of my system if it was on github or gitlab.