• zcd@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 个月前

      One of us one of us

      Edit: hows it going? Everything working ok?

  • Lvxferre@mander.xyz
    link
    fedilink
    arrow-up
    0
    ·
    1 个月前

    A script full of functions that I perform often, like:

    • Probe every 5min for internet connection. Play Black Sabbath when there is. (My internet goes down often.)
    • Create individual tarballs/zips/rars for each subdir.
    • Extract all tarballs/zips/rars from a dir. (It detects the format on its own)
    • Extract all files of a DwarFS file into a dir.
    • Re-encode all vids from a dir.
    • Delete all thumbnail pictures from my user.
    • Find and remove all desktop.ini and thumbs.db files in a dir, recursively.

    My .bashrc then sources that script, so to use those functions I simply open a terminal. And if I ever need to delete my .bashrc and recreate it anew, they’re safely stored in my scripts directory.

    • dave@hal9000@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 个月前

      The black Sabbath for Internet connection is hilarious. Did you get that from the Bitcoin mining trigger bit on Silicon Valley?

      • Lvxferre@mander.xyz
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        1 个月前

        No, that’s a coincidence. I wanted something that: started loud, was easy to recognise, I don’t mind hearing, and my neighbours don’t listen to. Wicked World it is.

        Here’s the code by the way, with the echo translated:

        lvxInternetCheck () {
        	while [[ $(ping -c 5 8.8.8.8 | grep -o "100% packet loss") == "100% packet loss" ]]
        		do echo "No internet at $(date +%R)." ; sleep 300
        		done
        	echo "Internet came back at $(date +%R)."
        	cvlc /[redacted]/08\ -\ Wicked\ World.mp3 
        	}
        

        It’s dirty but it works. (My functions start with “lvx” to avoid the tiny chance that they might clash with system functions.)

  • Valmond@lemmy.mindoki.com
    link
    fedilink
    arrow-up
    0
    ·
    1 个月前

    I just bought another (cheap quad core 256GB SSD) thinkcentre as a tinker platform.

    So I’m going to add that to my Linux uh setup (of machines).

    • Drasglaf@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      ·
      1 个月前

      I’ve been thinking about getting a thin client or similar for Hi-Res music listening for a while. I tried a Raspberry Pi 3b+ and the music sounded harsher and would crackle as soon as the Pi was doing anything else at the same time.

      Having my PC on all day in summer is a bit overwhelming.