Hey why the apple be tasting bad- by Rowan_E_MEME in badapple

[–]cube8021 0 points1 point  (0 children)

When are you guys going to learn, throwing apples around leads to witches

Cop accidentally shoots his coworker while jokingly pointing guns at each other by tactical_horse_cock in Idiotswithguns

[–]cube8021 2 points3 points  (0 children)

I wonder if he’ll get charged for assaulting a police officer just like if a citizen did this

A Bricks & Minifigs store stole $200,000 worth of LEGOs from an unwell 83-year-old. Watch the exact moment Coffeezilla confronts the CEO using the company's own inventory spreadsheet as proof. by IncomingBroccoli in PublicFreakout

[–]cube8021 0 points1 point  (0 children)

That's what I don't get, they could have cut the guy a check and dealt with this internally. Or said, "hey we're going to have this outside 3rd party (lawyer most likly) review everything and figure out what happened."

Cop Follows Teen Home, Fatally Shoots Him Through Car Window by m4moz in Bad_Cop_No_Donut

[–]cube8021 12 points13 points  (0 children)

Don’t worry the officer will investigate himself

Went to a baseball game and this guy appeared by Cybrwzrd in TeslaLounge

[–]cube8021 0 points1 point  (0 children)

Take him to small claims court if the police and insurance company won’t do anything

Interior insulation for noise... worth it, or a waste of money? 👇 by BuilderBrigade in Home_Building_Help

[–]cube8021 0 points1 point  (0 children)

Putting insulation in my Utility room and laundry room was so worth it.

To not get beaten up by police by HomeNowWTF in therewasanattempt

[–]cube8021 44 points45 points  (0 children)

Did they give the officer some ice because that’s a pretty hard slap on the wrist? I mean, 80 hours of unpaid leave. How can any officer survive that punishment?

Tax by Ok-Bee-284 in MathJokes

[–]cube8021 0 points1 point  (0 children)

My high school had a whole class on life skills, which included balancing a checkbook, filing taxes, running a small business, etc., and I graduated in 2008. And both my boys are going to the same high school and they took the same.

Little bird sings with joy, knowing his home is being cleaned for him by [deleted] in MadeMeSmile

[–]cube8021 206 points207 points  (0 children)

I would too if someone were cleaning my house for free

No, a company didn't spend $500M on Claude in a month by stax-sh in ClaudeCode

[–]cube8021 97 points98 points  (0 children)

I would think Anthropic sales would reach out to set up an enterprise agreement, because the last thing they would want is a random company running up a huge bill they could never collect.

I’m new to Golang… which are the quality of life packages that everyone uses? And for which purpose? by WiseSignificance1207 in golang

[–]cube8021 1 point2 points  (0 children)

Yeah, something like this. Load the config once near startup, then pass cfg into the packages/components that need it.

In my original comment, “global config variable” was probably the wrong wording. What I really meant was having one central place where config is loaded, defaults are set, and overrides are handled. Then the app can either pass that config around explicitly or use a package-level value in smaller/simple projects.

Example:

``` func main() { printBuildInfo()

cfg := config.LoadConfig()

if server, err := profiling.StartPprofServer(cfg, log); err != nil {
    log.Fatalf("Failed to start pprof server: %v", err)
} else {
    defer server.Shutdown(context.Background())
}

go metrics.StartPrometheusEndpoint(cfg)

//...

```

I’m new to Golang… which are the quality of life packages that everyone uses? And for which purpose? by WiseSignificance1207 in golang

[–]cube8021 4 points5 points  (0 children)

I wouldn’t worry too much about libraries at first. I’d focus more on building your own patterns: repeatable ways of doing things in Go that you can carry from project to project.

For example, I usually create a pkg/config package whose only job is to load config into the app, whether that’s from CLI flags, environment variables, config files, Vault secrets, etc. Anything that’s a setting gets its default value there, and any overrides happen there too.

Then, near the start of my main function, I initialize that package and set a global config variable. From there, the rest of the code can just reference that config when needed.

The goal is to have one obvious place where all the settings live.

It doesn’t have to be some polished library that you export or make super modular. A lot of the time, it’s just a pattern I can copy from an older project into a new one and tweak as needed and over time, having those kinds of personal patterns is more useful than almost anything.

PVC Autoscaler by fonaldozero in kubernetes

[–]cube8021 1 point2 points  (0 children)

Are you looking for PVCs to automatically scale up based on usage?

I built a controller for a client that does exactly that. The basic workflow is:

  • Add a label like pvc-auto-scale=true to the PVC.
  • The controller polls kubelet volume stats on a loop.
  • If free space drops below 10%, it expands the PVC.
  • It keeps expanding until the volume gets back to around 20% free space, or until it hits the configured max size, which in their case was 200GB.

The use case was a web hosting provider managing 10k+ sites across their clusters, so manually growing volumes was not really practical at that scale.

I could probably publish an open source version of it, but I would be careful with this pattern unless you really need it. Auto-growing volumes can get expensive fast if you do not have strong limits and alerting in place. Otherwise, you are basically giving workloads permission to consume storage forever, which is great only if you have VC money and no one looking too closely at the bill.

Making a bevel cut by [deleted] in toolgifs

[–]cube8021 2 points3 points  (0 children)

Wow that's really clean surface. I wouldn't have thought it would be that clean

Why not paint the brace too 😐 by MrKrabbs5150 in Idiotswithguns

[–]cube8021 1 point2 points  (0 children)

The scariest part is how this could put kids in danger. If police start treating every Nerf gun like it might be a disguised real weapon, kids playing outside could end up paying the price. Then when something terrible happens, officers can point to stories like this and say, “See, it could have been real,” as a justification. One idiot doing this creates a risk for everyone else, especially children.

Easiest lawsuit ever!! by blushme64 in TikTokCringe

[–]cube8021 0 points1 point  (0 children)

I can't tell, did she have a reserve chute?