[–] 2 points 2 days ago

Suddenly glad I avoided the sandboxed Google Play on my phone. I know I can't really blame an ad company for being a purveyor of surveillance technology, but I just don't think they should exist in their current form. If you're going to be an internet backbone service, your incentives can't be perverse. It's a matter of moral hazard.

  • source
  • parent
  • context
  • [–] 1 point 3 days ago

    Yeah, one of my co-workers just plays video games while his bot works away. That's not my way, but imo, that's a much better trade than trying to spin between 5 different tasks and toiling harder than you ever did when you had to do it "manually."

    If they want fast and cheap they can have it, but don't work yourself into a burnout trying to make the output totally slop free.

  • source
  • parent
  • context
  • [–] 2 points 3 days ago

    I'm lucky enough to work somewhere that doesn't dictate what tools I have to use. I don't use it for code, because that's just not fun for me. But I will use it once in a while when web search just totally fails me, but I know the answer is Out There (in the weights of scraped corpus).

    I'm fighting back, I guess, mostly just by showing that it's easy and enjoyable to do things without checking in with Sam Altman first. ;p

  • source
  • [–] 2 points 3 days ago (3 children)

    Yeah, I was complaining to a friend about how everything I like seems to be getting worse, and they basically said what you said: try to be zen about it, this is just a continuum of the same race to maximise profit that's been going on before we were born. You just try your best to be a good person who cares about other people, and try not to sweat what you can't control.

  • source
  • parent
  • context
  • [–] 1 point 3 days ago

    On my free time I don’t currently write code, non-technical hobbies and maintaining the homelab I conjured eat it up.

    I should get more non-technical hobbies, especially physical ones... But I'll be literally sat at my wfh desk typing for work, looking forward to after 17h when I can switch the kvm to writing code for pleasure lol. I do really like programming though. Somehow still not sick of it after all these years.

  • source
  • parent
  • context
  •  

    I manage a pretty disparate cluster of servers. Lots of Ubuntu VMs using Proxmox, a k8s cluster for Jupyter notebooks, and some old bare metal one-offs (Solaris, etc). Though Debian based is probably by far the most common.

    Right now I've inherited a spreadsheet listing OS versions and physical locations of each of the machines, some info on more stable VMs that handle key services (dns, chat, mail, web services, etc). Finally there are some VMs that belong to researchers who could be doing anything

    I'm not alone in managing all this thank gourd, but I'm new here, so it is a chore every time a new CVE drops to go trawling around to check what software is installed where and what version it is.

    Any ideas on how to implement a sort of queryable database of all the packages and their versions? I'm imagining a service that polls the individual nodes and fetches the information in whatever way is necessary for that system, then plops that info into a document db and presents it as a web app that lets people (me) do simple CRUD operations as well as add whatever context is relevant (last_checked, notes, location, history, etc).

    PS. I definitely don't want to roll out a prescriptive one-size-fits-all deployment model to make the job of querying easier. I'm fine taking on the complexity if I can let the people using my cluster continue being freaky little weirdos. :)

    [–] 1 point 2 weeks ago

    Thanks for sharing your experience. I'd love to put up a tiny tiny frontend to share my versioned work, but so far my best options seem to be cgit (configuration appears to be a bit of a bear), and legit by icyphox (spelling) (which is a bit unrefined, but at least it's pretty easy to modify).

    Lord help me if I end up trying to make own...

  • source
  • [–] 1 point 2 weeks ago

    Disclosure: I love git. I learned it along with vi and the GNU coreutils, etc, at my first job, so the roots run deep. When I think of programming, I think of git.

    That said, I can appreciate how it is unintuitive to people who don't really grok it. It is an incredibly powerful tool, but you have to really learn it on its own terms. You'll probably have to pick up a little graph theory, memorize a few kata to get yourself out of common problems (merge conflicts, interactive rebases, etc).

    I'm not sure how anything could replace it without also feeling lack-luster to people who are already good at git. Maybe we just need to keep adding more tooling and visualisation over top of it and let the power users at least be able to work at those lower levels if they choose to.

    I was going to say Git Butler looks like it might have been this, but taking a look at their page now and it seems like they've gone all-in on corporate sponsorships. :P

  • source
  •  

    Probably silly.

    Say I've got a remote repo that is only available sometimes, like a removable drive, and I want to add it as a remote, but I don't want to get an error each--

    Actually, maybe disregard... I was just poking about in the CLI and remembered that ofc I could add a named remote without adding its pushurl to my main remote like "origin". So it's actually easiest to just do like

    # Add the remote
    git clone --bare . /mnt/asdf/asdf
    git remote add usb /mnt/asdf/asdf
    
    # Push to it by name whenever
    git push usb
    

    Seems intuitive to me, but maybe I'm X/Ying it... how would other people go about having a "sometimes" available remote repo, where you want to track easily and efficiently keep track of all the git history?

     

    Whenever I do a git revert I go into an edit session with the following pre-filled.

    Revert "wip: does this work?"
    
    This reverts commit ad21a2ae23166b3f3cddoooooooom94821e3cdb4.
    
    # Please enter the commit message for your changes. Lines starting
    # with '#' will be ignored, and an empty message aborts the commit.
    ...
    

    ...and so on.

    I like to use conventional commits, so I change this to revert: "wip: does this work?".

    Is there a way to get the initial template for the revert commit message to appear this way by default? Lowercase, and with a colon.


    UPDATE This is what I came up with

    #!/bin/bash
    
    COMMIT_MSG_FILE=$1
    
    old_subject_line=$(head -1 $COMMIT_MSG_FILE)
    
    # Not a revert
    if [[ ! "$old_subject_line" =~ ^Revert\ \" ]]
    then
        exit 0
    fi
    
    new_subject_line=$(echo $old_subject_line|sed 's/^Revert/revert:/')
    
    sed -i "1s/.*/$new_subject_line/" $COMMIT_MSG_FILE
    

    Curiously, the case where two "Reverts" in a row become a "Reapply" doesn't come up like I thought it would. Maybe it only happens if you use the default Revert "yada yada yada" subject line.

    view more: next ›