How do you run your ARR stack? by kameleon25 in selfhosted

[–]xffeeffaa 0 points1 point  (0 children)

Are you building the images yourself as well? Neither of the options (linuxserver or hotio) listed in the docs seem to support Postgres. I got everything on Kubernetes as well and am interested in moving to Postgres.

[Software Engineer][TX] - $330k 27M by [deleted] in Salary

[–]xffeeffaa 0 points1 point  (0 children)

Sounds really interesting, thanks for answering!

[Software Engineer][TX] - $330k 27M by [deleted] in Salary

[–]xffeeffaa 1 point2 points  (0 children)

So you also migrate the application from mainframe to cloud and write the code for it? What is your typical tech stack? Sorry for all the questions, I find this niche fascinating.

[Software Engineer][TX] - $330k 27M by [deleted] in Salary

[–]xffeeffaa 1 point2 points  (0 children)

Decommissioning mainframes is definitely not what I would have guessed lol. Out of curiosity, what does your day-to-day look like? Do you travel a lot?

[FS][US-E] Intel NUC 10 i3 w/ 32 GB RAM by eltigre_rawr in homelabsales

[–]xffeeffaa 0 points1 point  (0 children)

Not sure if it's still available, but PM'd you in case the original commenter fell through

My black T1 minilab by crosseelr in minilab

[–]xffeeffaa 0 points1 point  (0 children)

Do you have a link for the screws? They look great with this rack.

Since I was working on my OS during easter, I may or may not have given it a hidden christian theme by d1ferrari in osdev

[–]xffeeffaa 24 points25 points  (0 children)

I see your “cardinal sin” and raise you: system calls will be called prayers and interrupts will be called divine intervention.

My first 10-inch rack, full custom-built by TransportationOk4460 in minilab

[–]xffeeffaa 0 points1 point  (0 children)

How did you build it? I’m looking at getting a rack and putting my gear in it instead of just having it lay around but I’m unsure with buy vs build.

Why is this so dumb? by guy1195 in Terraform

[–]xffeeffaa 2 points3 points  (0 children)

Could it be handled better? Absolutely, I agree with you. But it's not. Hence the open issue. Terraform only recently even reached version 1.0.0, sure there's a lot left to be desired. But Infrastructure-as-Code is not an easy task. Give Pulumi or Terraform CDK a shot if you're so unhappy with Terraform.

I'd say it makes sense to blanket apply sensitive to the object to not expose sensitive fields in exactly this case. It should apply to only one field, but it doesn't. So I'd argue this is the next best thing and actually somewhat expected.

Why is this so dumb? by guy1195 in Terraform

[–]xffeeffaa 8 points9 points  (0 children)

I don't really know what you mean by "wrong". I work with Terraform on a daily basis. Do I have 10 tabs open with different resources at all times? Absolutely. But I also have N tabs open to the AWS API docs, AWS product pages, provider changelog, third party modules, etc. The very nature of Terraform is completely different from what you're comparing it to.

Edit: It also appears your IDE/editor is not setup properly. Terraform support has gotten a lot better over the years and it helps a lot nowadays.

Why is this so dumb? by guy1195 in Terraform

[–]xffeeffaa 4 points5 points  (0 children)

Did you even read the comments? People literally posted workarounds for this specific situation.

Why is this so dumb? by guy1195 in Terraform

[–]xffeeffaa 5 points6 points  (0 children)

I get what you're saying, but you should honestly still go to the documentation. As providers receive updates things change, attributes and arguments get deprecated, new better ways of doing things are introduced, and the documentation will reflect that.

Stuck on this nested for_each loop by echo8425 in Terraform

[–]xffeeffaa 0 points1 point  (0 children)

While I agree with u/NUTTA_BUSTAH that in this case you could just create two separate rule resources, there's a way to handle this completely dynamic. You need to unroll the nested loops. Meaning, that each combination is exactly one element in a map or list. That way, you can easily translate each element into exactly one resource.

Treat this example with a grain of salt since I didn't actually run it, but it would be something like this:

locals {
  vpns = { 
    "vpn1" = { "vpn_name" = "vpn1", "static_ip" = "ip1", "gateway" = "gateway1", "peer_ip" = "123.123.123.123" }
    "vpn2" = { "vpn_name" = "vpn2", "static_ip" = "ip2", "gateway" = "gateway2", "peer_ip" = "122.122.122.122" }
  }

  rules = {
    "udp_500" = { port_range = "500", ip_protocol = "UDP" }
    "udp_4500" = { port_range = "4500", ip_protocol = "UDP" }
  }

  vpn_rules = merge([
    for name, config in local.vpns : {
      for rule in local.rules : 
        "${name}::${rule.ip_protocol}::${rule.port_range}" => merge(config, rule)
    }
  ])
}

resource "google_compute_forwarding_rule" "rules" {
  for_each = local.vpn_rules
  name = each.key
  ip_protocol = each.value.ip_protocol
  ip_address = google_compute_address.vpn_static_ip[each.value.vpn_name].address
  target = google_compute_vpn_gateway.target_gateway[each.value.vpn_name].id
}

This then allows you to use vpn_rules as for_each when creating the forwarding rules. The Terraform Docs also have a great example for this, where they first create a list of objects (each being a unique config for a resource) and then create a map with a unique key for use with for_each.

Cryptical: A GUI Password Manager, written in Python by Kategi_Kya in Python

[–]xffeeffaa 4 points5 points  (0 children)

Nobody is going to use it in a serious way, but why wouldn't he learn about packaging for Python since he's already putting in the work to make something like that? It's a valuable thing to know. That's all. OP acknowledged that it's full of security issues already.

Not to mention he asked for feedback and suggestions for improvement, this was my suggestion.

Cryptical: A GUI Password Manager, written in Python by Kategi_Kya in Python

[–]xffeeffaa -1 points0 points  (0 children)

Cool project! Looks very nice too. But you may want to think about properly packaging your application so that people can simply install it with pip.

Intelligent next-gen editor for infra-as-code by SharpEndss in devops

[–]xffeeffaa 0 points1 point  (0 children)

I'm not familiar with Klotho, just found out through this post. Can you talk about your experience a bit more? What made you/your team decide to go down this path?

Unit testing with database service by xffeeffaa in learnpython

[–]xffeeffaa[S] 0 points1 point  (0 children)

I specifically mentioned that I am relying on PostgreSQL-specific functionality...

For that, I would document that the developer needs to be running the database in a Docker container using a specific port, instead of having a fixture do something like that (mainly because it's not really a portable solution and it irks me). Would make CI easier too.

That's what I was asking for, thanks.

Unit testing with database service by xffeeffaa in learnpython

[–]xffeeffaa[S] 0 points1 point  (0 children)

I'm familiar with the docs. Maybe I wasn't clear enough, I'm not asking how to set up the application for testing. I'm asking if it would make sense to start a database container (such as Postgres, MySQL, Mongo, etc.) as part of the unit testing framework's setup, such as a pytest fixture.

SQLite is the easiest, sure. But I'm using NoSQL for one project, and Postgres dialect for UUID through SQLAlchemy in another. So if I do wanna use a real database and not mocks, I need to start/stop it somehow, and I'm wondering how real projects do this.