Canadian software engineer living in Europe.

  • 10 Posts
  • 58 Comments
Joined 2 years ago
cake
Cake day: June 7th, 2023

help-circle

  • I have a few interesting ones.

    Download a video:

    alias yt="yt-dlp -o '%(title)s-%(id)s.%(ext)s' "
    

    Execute the previous command as root:

    alias please='sudo $(fc -n -l -1)'
    

    Delete all the Docker things. I do this surprisingly often:

    alias docker-nuke="docker system prune --all --volumes --force"
    

    This is a handy one for detecting a hard link

    function is-hardlink {
      count=$(stat -c %h -- "${1}")
      if [ "${count}" -gt 1 ]; then
        echo "Yes.  There are ${count} links to this file."
      else
        echo "Nope.  This file is unique."
      fi
    }
    

    I run this one pretty much every day. Regardless of the distro I’m using, it Updates All The Things:

    function up {
      if [[ $(command -v yay) ]]; then
        yay -Syu --noconfirm
        yay -Yc --noconfirm
      elif [[ $(command -v apt) ]]; then
        sudo apt update
        sudo apt upgrade -y
        sudo apt autoremove -y
      fi
      flatpak update --assumeyes
      flatpak remove --unused --assumeyes
    }
    

    I maintain an aliases file in GitLab with all the stuff I have in my environment if anyone is curious.


  • I have much the same:

    • Files on the network with NFS
    • Kodi on an old laptop under the TV so we can watch said files.
    • Syncthing on our phones and laptops to pull films from there onto that file server.

    The only difference is that I’m using a Synology 'cause I have 15TB and don’t know how to do RAID myself, let alone how to do it with an old laptop. I can’t really recommend a Synology though. It’s got too many useless add-ons and simple tools like rsync never work properly with it.










  • Granted, sudo isn’t in coreutils, but it’s sufficiently standard that I’d argue that the licence is very relevant to the wider Linux community.

    Anyway, I answered this at length the last time this subject came up here, but the TL;DR is that private companies (like Canonical, who owns Ubuntu) love the MIT license because it allows them to take the code and make proprietary versions of it without having to release the source code. Consider the implications of a sudo binary that’s Built For Ubuntu™ with closed-source proprietary hooks into Canonical’s cloud auth provider. It’s death by a thousand MIT-licensed cuts to our once Free operating system.





  • Daniel Quinn@lemmy.catoLinux@lemmy.mlThis looks cool but can it game?
    link
    fedilink
    English
    arrow-up
    20
    arrow-down
    1
    ·
    2 months ago

    The Ampre Altra runs from 32 to 128 cores (dear gods that’s beautiful), but with that architecture, and the company’s stated purpose, it makes more sense in a computer meant to be used as a server rather than a desktop gaming rig. You’d use a chip like that in a Kubernetes cluster for example.

    Combined with an Nvidia card, a brand notorious for being a Pain In The Ass in Linuxland, I’m going to go out on a limb here and suggest that the intended purpose of a box like this is a server for AI/ML-based services.



  • Daniel Quinn@lemmy.catoSelfhosted@lemmy.worldLiquid Trees
    link
    fedilink
    English
    arrow-up
    93
    ·
    2 months ago

    I had the same reaction until I read this.

    TL;DR: it’s 10-50x more efficient at cleaning the air and actually generates both electricity and fertiliser.

    Yes, it would be better to just get rid of all the cars generating the pollution in the first place and putting in some more trees, but there are clear advantages to this.



  • I live firmly in the #FuckCars camp, but I honestly think this is fantastic. Standards and conformity breed massive changes within an industry if they’re permitted to take root, and this is already bucking the “monster truck” trend that’s killing people and ruining cities.

    Imagine the potential of a city buying a few thousand of these to serve as work vehicles: interchangeable parts would drastically reduce costs as you could canibalise one vehicle to service many, and you could easily re-task vehicles with minor, off-the-shelf (or even custom) modifications.

    The real test though will be whether (a) the establishment car companies will allow it to survive, and (b) whether its US origins will make it radioactive to the rest of the world given their current fall toward fascism.