News for hackers. Stuff that matters.
Re:Ask HN: What are your “scratch own itch” projects? by TacticalCoder on Sunday November 13, 2022 @09:56AM (#33583591)
I was tired of "backups inside backups inside directories with yet more backups" I accumulated over the ages.

Stuff as old as:

   /home/pub/oldbackups/hddConner800MB1998/olddos/...
Yet I like to try to keep everything personal. I've got nearly all my emails. Since the nineties. I still have my DOS source code files.

Same for the more recent stuff.

This is saved in many places.

Yet at times I like to organize some of that mess. There are files I definitely don't give a crap about anymore: files/directories from that old Windows driver for that long gone laptop.

So I wrote my own system which allows me to "tag" files and directories based on their cryptographic hash (I'm using Blake3 for it's very fast). I can, for example, tag a file "for deletion". No matter what, when file with blake3 hash 0c340c79... is found, it can be deleted.

I'm also not happy with hash-based content addressing systems I found so far, so every file that's never ever going to be modified again got part of its hash appended to its filename. So I can also verify that the file isn't corrupted.

And it works as a file deduplication system too.

It's not a big "scratch my own itch" as I'm reusing lots of stuff that already exists but it's lots of fun and works fine.

It's very satisfying.

No more: "but I already deleted that, why do I need to delete it again!?".

Instead I launch my berzerker (that's how I named it) and it goes berzerk.

Re:Ask HN: What are your “scratch own itch” projects? by NoMoreBro on Monday November 14, 2022 @10:50AM (#33595747)
Do you mind sharing some of the tools you are using?