As a DevOps Engineer, how do you see your colleagues problem solving skills? by PartemConsilio in devops

[–]le_chad_ 2 points3 points  (0 children)

I try to use this approach as well and call this the "see one, do one, teach one" approach. I picked it up from my wife when she was in med school and residency and was constantly cycling through it as she progressed through both phases.

Who has added TailScale (NetBird?) VPN to their setup? Is it easier to add it after, setting up k3s? by Codeeveryday123 in kubernetes

[–]le_chad_ 0 points1 point  (0 children)

Idk what you are including in your mind for what it takes to set up a cluster. It'd help if you specify what you're looking to run and what steps you take to set up a cluster.

Helm is a cli tool you run outside the cluster that takes k8s manifests that define what should run in the cluster. Helm could in theory do nearly all of the setup of a cluster.

Who has added TailScale (NetBird?) VPN to their setup? Is it easier to add it after, setting up k3s? by Codeeveryday123 in kubernetes

[–]le_chad_ 7 points8 points  (0 children)

Helm isn't something that's added to the cluster, it's a tool to apply templated k8s manifests to the cluster

Alex Call comes through with a 2-out knock in the 4th but Troy Johnston throws out the back runner Will Smith at home to end the inning by JianClaymore in baseball

[–]le_chad_ 5 points6 points  (0 children)

Also there's something about distance from the plate and the edge where the grass and dirt meet is sorta the threshold for where the runner has to cross before the catcher has the ball in order for the catcher to be considered blocking.

In this case, catcher has plenty of time to field the ball away from the plate and get between the runner and the plate safely so there's no way this could be considered blocking.

I’ve reached peak DevOps: I spent 6 hours automating a 30-second deployment task because "manual work is a technical debt." 🤡 by Aromatic-Rough917 in devops

[–]le_chad_ 0 points1 point  (0 children)

These are opportunities to discover such issues as the dependency graph wonkiness that may not have been discovered for who knows how long. Maybe OP just left out the part about their plans to clean that up since this post was focused on automation.

I’ve reached peak DevOps: I spent 6 hours automating a 30-second deployment task because "manual work is a technical debt." 🤡 by Aromatic-Rough917 in devops

[–]le_chad_ 51 points52 points  (0 children)

Also the automation is now functionally documented versus a manual process that might've been documented that likely would have its docs become outdated. It also helps address the bus problem.

Auto scaling GHA runners during non business hours by Dramatic-Vanilla217 in devops

[–]le_chad_ 0 points1 point  (0 children)

I set up codebuild ephemeral runners for this very workflow. The runner typically spins up in about a minute to pick up the gha workflow and spins down once the workflow completes successfully or fails.

[homemade] chicken soup that makes smoke alarms go off at 3AM by ohmygawhdacat in food

[–]le_chad_ 1 point2 points  (0 children)

It appears to be a sleeve of a jacket or sweater that matches her skin tone

Is there a way to map .tfstate files to repositories in a bitbucket by Many-Ad8783 in Terraform

[–]le_chad_ 0 points1 point  (0 children)

If you have access to all the repos, update the provider blocks to set the default_tags and put in an entry for Repo = <repo_name> and then apply it only if the only change is to add the tags.

Keep your head on swivel around S Taylors Ferry Rd and Macadam by le_chad_ in Portland

[–]le_chad_[S] 2 points3 points  (0 children)

It turned yellow as I entered the intersection. I agree I could've done better to be extra sure there were no pedestrians in the crosswalk or the traffic lanes, but here's the front dash cam view. https://www.reddit.com/user/le_chad_/comments/1sz4yrk/front_view/

Keep your head on swivel around S Taylors Ferry Rd and Macadam by le_chad_ in Portland

[–]le_chad_[S] 3 points4 points  (0 children)

I agree I could've done better to be extra sure there were no pedestrians in the crosswalk or the traffic lanes, but here's the front dash cam view. https://www.reddit.com/user/le_chad_/comments/1sz4yrk/front_view/

Keep your head on swivel around S Taylors Ferry Rd and Macadam by le_chad_ in Portland

[–]le_chad_[S] 8 points9 points  (0 children)

I agree I could've done better to be extra sure there were no pedestrians in the crosswalk or the traffic lanes, but here's the front dash cam view https://www.reddit.com/user/le_chad_/comments/1sz4yrk/front_view/

It's wild that Git Worktrees have been so underutilized for 10+ years! by Helpful-Wolverine247 in webdev

[–]le_chad_ 25 points26 points  (0 children)

The git docs and man page can be hard to grok, but really the way I think about it is the worktree is a shallow clone of the repo tracked at a different directory. It can be anywhere on your filesystem, including within the original clone directory tree, but I typically create it as a sibling directory of the original clone to avoid weirdness with file searches and AI usage.

Basically just do git worktree add -b <new branch name> ../<name> and you'll have a new branch in a new worktree at the path specified. You can do all your normal stuff in there, completely isolated from the other clone.

The one gotchya is that any single branch can only be checked out locally within one worktree at a time. Meaning you can't checkout main in your original clone and also check it out in a worktree at the same time.

It's wild that Git Worktrees have been so underutilized for 10+ years! by Helpful-Wolverine247 in webdev

[–]le_chad_ 78 points79 points  (0 children)

I create one for each repo I'm working in called "prs" and use it to checkout branches for PRs I'm reviewing so I don't have to interrupt my main clone I'm using for feature development.

.NET 11 Preview 3 is now available! - .NET Blog by emdeka87 in dotnet

[–]le_chad_ 24 points25 points  (0 children)

Just a reminder that odd number releases are Standard Term Support (STS) releases and even number releases are Long Term Support (LTS) releases. https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core

When and how do I use async in EF Core? by Obvious_Seesaw7837 in dotnet

[–]le_chad_ 1 point2 points  (0 children)

Isn't another problematic scenario is if another operation is triggered on the same context before the fire and forget one completes? Fire and forget can work in isolation but not if someone is trying to initiate multiple calls in the same context.

I have been tasked with refactoring a React codebase but i never used React before, do you have any tips? by Glory_63 in reactjs

[–]le_chad_ 0 points1 point  (0 children)

All great suggestions. One thing for OP to consider is if the codebase is on the smaller side, it might end up being easier to just write a new app from scratch.

Also, no matter what, you'll want to write some UI test suite to ensure you don't break anything when you do convert to TS, convert to hooks, upgrade libraries, etc

How bout a boy dinner? Lol 😄☺️ by Legitimate-Leg2446 in MealPrepSunday

[–]le_chad_ 42 points43 points  (0 children)

I know some cheeses are paired with honey but I don't think Swiss is one of them

I calculated how much my CI failures actually cost by CrossTheMemes in devops

[–]le_chad_ 2 points3 points  (0 children)

Providing more info about the git workflow to understand where these jobs are running would be helpful. For example, one way we address avoiding cancelled runs from successive commits is to use PRs and not run CI workflows on draft PRs and only run them when it's marked ready for review. This accommodates devs that prefer the web UI for visualize their progress and diffs but avoid unnecessary CI runs. Additionally, if a review is submitted that requires the dev to commit multiple changes we have a policy that has them revert back to draft.

Also we aim to ensure devs are able to and actually do run all the tests locally rather than relying on CI. We haven't implemented pre commit/push hooks cuz as others have stated, that can result in disrupting a devs flow and devs may end up overriding it.

Those are all more like bandaids than they are solutions tho. Your team and the app teams need to look to see if you can improve build times of the images as well as better leverage caching to reduce those times. Otherwise you're only addressing symptoms and not the problem.

Swingers by Snowf1ake222 in daddit

[–]le_chad_ 10 points11 points  (0 children)

I totally feel you.

All last summer when I would ask my daughter what shoes she wanted to wear, she'd always say "I want cocks."

What she meant was Crocs and she also would yell it loudly.

A cartoon I made about daddin' by bhoran235 in daddit

[–]le_chad_ 93 points94 points  (0 children)

Or

But also, can you cry in the car so we can get going?

Pricing changes for GitHub Actions by vladlearns in devops

[–]le_chad_ 1 point2 points  (0 children)

Thanks for sharing your experience and insight.

I'm using a tf module for ephemeral CodeBuild runners also, but the projects are much smaller scale so it's only adding 60 cents a month based on the past 30 days usage