• 0 Posts
  • 9 Comments
Joined 11 months ago
cake
Cake day: August 6th, 2023

help-circle

  • I grew up on a farm, any programmer that thinks farming or ranching is better is gonna have a rude awakening as to why there are very few farmers anymore.

    So no not every computer guy dreams of the farm, repairing 10miles of fence every April for the entire month all day every day isn’t what I would consider an improvement over programming. And that’s the easy part wait till you gotta help an animal struggling to give birth.

    I get programmers have this idea that farming or ranching is more pure somehow but it is murder on your body and soul in ways you wont understand. programming and computer stuff is a cakewalk in comparison. more politics but learn to play the game of thrones and its not too bad.


  • Accepting ssh key fingerprints on first ssh is a bad practice. Ssh ca’s and or sshfp are around and have been for decades. Accepting random host keys is like trusting random self signed ssl certificates.

    Use ssh ca’s for user and host keys so you can revoke and rekey hosts without having to update authorized keys. And then you can revoke access to hosts for users as well and much more.






  • mitchty@lemmy.sdf.orgtolinuxmemes@lemmy.worldRussian delete
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    3 months ago

    Key here is the outer [] and interaction of $[], test doesn’t have == by default in standard posix, so no this isn’t posix shell or bourne compatible. Tis but another bashism. I could probably force zsh into a more bourne mode to try it but its definitely not portable bourne shell its bash.

    $ [ $[ $RANDOM % 6 ] == 0 ] && echo rm || echo ok
    zsh: = not found
    $ zsh --version
    zsh 5.9 (x86_64-pc-linux-gnu)
    

    == should be -eq for this to be posix/bourne portable, you could use = but -eq is for numeric comparisons so not quite right.