🎧MutatedBass🖱️

  • 0 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle
  • Up and down I guess. My wife’s aunt passed away and she took it pretty hard. I try to just be there for her because I know in this case there’s nothing else I can do but I hate to see her so upset. It’s been a few days and she seems to be processing it well.

    I’m also in the middle of a terrible IBS flare up. I would like to see a doctor about this finally, but being a young, otherwise healthy guy, I don’t have care established with a doctor’s office and getting an appointment is proving to be a challenge.

    On a more positive note we celebrated our one year wedding anniversary. Had a nice lunch together, walked our dog through the local arboretum, and opened a left over bottle of rye whiskey from the wedding to make old fashioneds (one of the drinks we had at the wedding). We will wait till our five year to open the bottle again.

    My wife, some friends and I wanted to play some modded Minecraft so I setup a Valhelsia 3 server for us. It’s been a lot of fun so far, none of us have had fun with this game in years, so it has been nice to play again.






  • Here’s a script from GPT4:

    #!/bin/bash
    
    # Create a temporary file for storing file checksums
    tempfile=$(mktemp)
    
    # Generate MD5 checksums for all files in the current directory and its sub-directories
    find . -type f -exec md5sum '{}' \; | sort > $tempfile
    
    # Detect and delete duplicates
    awk 'BEGIN {
        lasthash = "";
        lastfile = "";
    }
    {
        if ($1 == lasthash) {
            print "Deleting duplicate file: " $2;
            system("rm -f \""$2"\"");
        } else {
            lasthash = $1;
            lastfile = $2;
        }
    }' $tempfile
    
    # Clean up
    rm -f $tempfile
    

    This script can be run with Termux from the root of your internal storage. Usually /sdcard or /storage/emulated/0. Do not confuse this with running from root if you are rooted.

    Before using a script that interacts with your files you should backup anything that is important just in case.

    Furthermore, if you comment out:

    system("rm -f \""$2"\"");
    

    By adding a # in front of it like this:

    # system("rm -f \""$2"\"");
    

    You can run the script and see what files the script would delete without actually deleting them. I would recommend doing this as I have not tested this script.