• 4 Posts
  • 213 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle
  • Again, capable of a lot but it’s best at configuration management. I like to use Ansible after I install an OS to do things like tweak SSH to be more secure, install Fish shell, set common environment variables and aliases, create a bin folder in my home directory, and clone down a bunch of custom scripts I have and a remote Git repository. You can do this kind of thing with a bash script also but with a well written ansible playbook you can run it over and over and it can fix configuration drift (in my example it could ensure my repository of scripts is up to date).













  • Wow. I might have the same model. What distro are you running?

    I’m running Ubuntu Budgie Jellyfish. My biggest gripes are battery life and notifications (only low battery warning I get is the screen flickering 1 min before it dies at around 5% power), video (maybe once a month the screen will go black and I can’t do anything but hard reset), and Wi-Fi (5G connection is much more likely to drop than 2.4G if I’m between APs). Might be a bit of a lemon since I had to get the mobo replaced in like the first 2 weeks.








  • What’s the purpose of foo? Why an ambiguous single character variable? What if the property was there but the value was null? Why not use (assuming JS) optional chaining?

    I’d approach it more like this:

    function getWhatevrProp(userData) (
      const default = { whatevr: "n/a" };
    
      return { ...default, ...userData }.whatevr;
    }
    

    Sorry, read too fast the first time. It’s more likely Python. I also don’t know Python well enough to give recommendations on that.