𝚝𝚛𝚔

  • 177 Posts
  • 1.53K Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle


  • 𝚝𝚛𝚔toMetaGo Private?
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    22 hours ago

    Is it possible to automate? I looked at the Lamington docs briefly and it looked like it uses a file to store config. Thought if the config file was a symlink it would make it easy to change config to be private / be public.

    Like this every 30 minutes or whatever. Obviously will require a bit more logic rather than constantly recreating symlinks… but yeah.

    #!/bin/bash
    
    THRESHOLD=1.5
    
    CMD_HIGH="ln -sfn /blah/blah/config.json /blah/blah/config.json.private && systemctl restart lamington"
    CMD_LOW="ln -sfn /blah/blah/config.json /blah/blah/config.json.public && systemctl restart lamington"
    
    LOAD_15MIN=$(uptime | awk -F'[a-z]:' '{print $2}' | awk -F', ' '{print $3}' | tr -d ' ')
    
    if (( $(echo "$LOAD_15MIN > $THRESHOLD" | bc -l) )); then
        echo "[$(date)] High Load Detected - Current: $LOAD_15MIN, Threshold: $THRESHOLD"
        echo "[$(date)] Taking Lamington private........ "
        eval "$CMD_HIGH"
    else
        echo "[$(date)] Normal Load Detected - Current: $LOAD_15MIN, Threshold: $THRESHOLD"
        echo "[$(date)] Returning Lamington to public... "
        eval "$CMD_LOW"
    fi
    



  • 𝚝𝚛𝚔toMetaGo Private?
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 day ago

    Random thought - can you toggle private instance reasonably simply? I know nothing about running a Lamington stall, but if its a JSON file is it possible to have two versions and update a symlink to the version you want to use at the time?

    The reason I ask is it would be pretty sneaky tricks to monitor server load and toggle to private when it exceeds a threshold for a fixed period of time, then toggle back (i.e. greater than 50% server load = private for the next 2 hours or whatever).

    Alternatively, I’ll just put my vote in for going private.


  • 𝚝𝚛𝚔toMetaGo Private?
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 day ago

    Do people find the server organically through Google results or something else that may be impacted by the change? If there’s value in that there might be an argument against going private.

    If enabling it reduces the need for server upgrades as time goes on I guess it’s a positive though. Don’t want to be paying extra server costs just to help out some AI company.





  • I’m having a mental blank… Or possibly I just invented a word that doesn’t exist once, and that’s why I can’t remember it now.

    What’s the term for when someone has to come to grips with something happening that is the exact opposite to their beliefs?

    For example, i I think all dual cab 4x4s are driven by wankers… But then one day, the driver of a dual cab does something courteous and I have to ??? the idea that a dual cab driver could be ok AND dual cab driver.

    Consolidate? Reconcile?








  • Pet peeve of the day: People who dont go to the end of merging lanes before merging.

    If everyone just went to the end of the lane and zippered, traffic would flow so much nicer. Instead you get the people who dive in to traffic as soon as the dotted line appears… which means half a dozen cars go past them up the lane and at least another 1 or 2 of those people will also drop in to traffic prior before the end of the lane… which means instead of a nice 1:1 zipper at the end of a run that gives plenty of chance to match speed its more like 4:1 with 75% of them doing it with insufficient room which means people in traffic having to brake. And now you have the ripple effect causing a big slow down.



  • I will never understand what part of Trump politics appeals to “young men” (or anyone).

    The bloke is a loser, yet just keeps bluffing and grifting his way to the top. How is that a trait you want to emulate?

    Even in the article the kid says:

    "I was watching TV, and he just came out, and told everybody what was going wrong.

    … When did this happen? In which particular series of words that fell out of Trumps mouth during one of his insane ramblings did old mate get the impression this is what happened? It’s like seeing a portent in your bowl of spaghettios or something. Just because a brief moment of chance brought something together that appeared to make sense on the surface doesn’t mean you should ignore the 99% that doesn’t.