• 1 Post
  • 235 Comments
Joined 3 years ago
cake
Cake day: June 15th, 2023

help-circle




  • If I had those, here’s what I would do:

    First, for both an optional but nice quality of life improvement would be to replace the HDDs with SSDs. Boot up and file access times will be much snappier.

    Mac Mini

    Congratulations! You have a nice foundation for a home server running linux. You could plug in a USB RAID of some sort ( example) and go full pirate running the *arr stack. You could set it up as a HTPC using the IR receiver with Kodi and whatever adapter is needed for your TV. You could set up a developers server, running git and whatever tool you find useful. You could set up https://nextcloud.com/ and self host most of the necessities of modern productivity. Or all of the above.

    HP Pavilion G7

    Congratulations! You have a great dedicated low-distraction writing and working machine. I have a pair of similar, though slightly lower end, laptops. I got a replacement battery for one of them from Ali, and run a minimal Debian + i3 setup on it. It’s great for taking with me to write, whether code, gaming notes, creative writing or whatever else. The modern web is pretty terrible on it, which takes away a ton of distractions, but still usable enough if I need it in a pinch. I also have it set up for music, both local mp3s and streaming from my home server. It also runs a ton of classic games through DOSBOX. My other one I use as a sandbox, testing out alternative OSs, weird setups and whatnot. I haven’t upgraded its HDD or battery yet, but my older daughter is wanting to type more when writing due to being left handed, so I’m thinking about setting it up as a dedicated machine for her.


  • I’ve been an embedded developer for coming up on 20 years at this point, and recently went through a job hunt. Of the three that made it to the offer stage, two used Rust almost exclusively in their embedded stack and one used Rust in their embedded LInux stack and was trying to decide if they were going to use rust in their bare-metal/RTOS stack. I ended up at on of the Rust places, though I had no Rust experience. I have to say, while I do find many parts of the syntax too cute by half, in general I’m pretty happy with it as an embedded language. My current target architectures are ARM Cortex-M7 and Cortex-A53. In general toolchain, and debugger support has been good, peripheral support has been ok but could use improvement.



  • This has been considered by the Linux community literally since the day Linus first announced his kernel on Usenet. The primary defense is the GPL and related licenses which legally protect against that kind of abuse by forcing derived works to also be opened under the same license.

    This is why, as much as I support the general idea of uutils, I’m deeply suspicious the it is under a MIT license instead of the GPL.









  • My version is definitely wordier, but I like it.

    add-alias() {
      if [[ -z "$1"  ||  -z "$2" ]]; then
        echo "Useage: add-alias <alias_name> \"<command_to_alias>\""
        return 1
      fi
      echo "alias $1='$2'" >> ~/.bash_aliases
      source ~/.bash_aliases
      echo "Alias '$1' for command '$2' added and sourced."
      
    }
    

    And, of course, the first thing I test it with is $ add-alias alias-add add-alias.