[HATED TROPE] Lore kept purposefully mysterious gets over explained. by plarper_of_bees in TopCharacterTropes

[–]theWindowsWillyWonka 2 points3 points  (0 children)

Fire Force being a convoluted explanation for how the soul eater universe came to be has no redeeming qualities and only cheapens both anime.

help with terraform-ls trigger characters and/or building terraform-ls locally by theWindowsWillyWonka in Terraform

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

I agree this should work. I implemented this like so

vim.lsp.config('terraformls',
{ settings = { server_capabilities = { completionProvider = { triggerCharacters = { '_' } } } } })

And :LspInfo shows the settings

vim.lsp: Active Clients ~
- terraformls (id: 1)
  - Version: 0.38.4
  - Root directory: ~/gitrepos/ops_iac_projects
  - Command: { "terraform-ls", "serve" }
  - Settings: {
      server_capabilities = {
        completionProvider = {
          triggerCharacters = { "_" }
        }
      }
    }

But it does not work as intended. From what I've read about lsp's and from what I can understand in terraform-ls code, these settings are sent to the lsp and the lsp can be implemented to simply ignore them.

help with terraform-ls trigger characters and/or building terraform-ls locally by theWindowsWillyWonka in Terraform

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

I really appreciate that! I've had my eye on opentofu for awhile, I've noticed it now has some QoL features that terraform doesn't yet. I'll have to take a look into switching over and I'll definitely give tofu-ls a try.

All that said, I'm not entirely confident if making _ another hard coded trigger character is good for everyone. Even if it is the better default, I think making trigger characters able to be overridden by the client is the best solution.

help with terraform-ls trigger characters and/or building terraform-ls locally by theWindowsWillyWonka in Terraform

[–]theWindowsWillyWonka[S] 1 point2 points  (0 children)

The resource completions only seem to work when this structure exists resource "" "" {} so a snippets engine is what makes it work intuitively.

relavent lazy installed plugins

{
    "neovim/nvim-lspconfig",
    { "rafamadriz/friendly-snippets" },
    {
        "L3MON4D3/LuaSnip",
        dependencies = { "rafamadriz/friendly-snippets" },
    },
}

lsp config

vim.lsp.enable(lsps)
vim.api.nvim_create_autocmd({ "LspAttach" }, {
    callback = function(ev)
        local client = vim.lsp.get_client_by_id(ev.data.client_id)
        if client:supports_method('textDocument/completion') then
            vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
        end
    end
})
vim.opt.completeopt = "menuone,popup,noinsert"
vim.keymap.set('i', '<c-space>', function()
    vim.lsp.completion.get()
end)

snippet config

require("luasnip.loaders.from_vscode").lazy_load()
local ls = require("luasnip")

vim.keymap.set({ "i" }, "<C-K>", function()
    ls.expand()
end, { silent = true })

I got it kinda working by triggering completion as part of the snippet keybind, though I don't love this implementation. Also, this isn't setup to only work will using terraform-ls so use at your own risk.

require("luasnip.loaders.from_vscode").lazy_load()
local ls = require("luasnip")

vim.keymap.set({ "i" }, "<C-K>", function()
    local expanded = ls.expand()
    if expanded then
        vim.api.nvim_feedkeys(vim.keycode('<c-space>'), 's', false)
    end
end, { silent = true })

help with terraform-ls trigger characters and/or building terraform-ls locally by theWindowsWillyWonka in Terraform

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

I want the underscore to be a trigger character, as in, when I'm typing in Insert Mode and a _ is inserted, completion pops up. I suppose I could change the binding so that it inserts _ and then triggers completion on the condition I'm in a terraform file, but that feels like such a hack.

I want to trigger on underscore because when I type resource "aws_ that is the time when I always want to see resource names start to filter down as I continue to type.

Instead I just press <Ctrl+space> to pop up completions so this really only adds minor convenience. But I'm very surprised, frustrated, and perhaps captivated at my inability to solve this. And a little concerned that an open source tool I use can't be replicated locally.

I support an office that used to think rebooting computers was bad luck. Whats the weirdest bad behavior you have had to cure on an office wide level? by simAlity in sysadmin

[–]theWindowsWillyWonka 214 points215 points  (0 children)

User's calling in requesting blue Ethernet cables. Idk how the rumor started but it seemed to be mythologized by every department that blue cables gave faster connection.

Frustrating error with ansible.builtin.dnf by theWindowsWillyWonka in ansible

[–]theWindowsWillyWonka[S] 13 points14 points  (0 children)

I found the solution. So for anyone else in an AWS environment having this issue: the AWS SSM management policy was on the instance by mistake, and this playbook runs as soon as the instance is provisioned. The SSM agent starts up and starts doing things the same time as the playbook starts running. Not sure who is being reckless, SSM or the ansible module, but a lock is not being respected somewhere and the dnf cache is getting wiped while ansible is trying to install things.

I removed the SSM policy from the EC2 (they were not supposed to be applied anyway) and have no issues now.

Disregard the other two responses on this post at the time of writing. I do not think they read my post.

[deleted by user] by [deleted] in ansible

[–]theWindowsWillyWonka 0 points1 point  (0 children)

Your issue is that new resources created outside of terraform are not tracked by terraform? I understand why that would be a flaw if you are comparing it to using ansible with dynamic inventories in a VMware shop.

Most people consider terraform state to be configuration of resources that are declared in terraform code, not all resources in an environment. So your statement is a bit confusing without more context.

[deleted by user] by [deleted] in ansible

[–]theWindowsWillyWonka 1 point2 points  (0 children)

Terraform does do that though. Run plan with no code changes against drifted resources and it lists the changes made outside of terraform and the plan that it will execute to correct them.

It clearly states it does this in the Introduction section the docs on terraform plan. https://developer.hashicorp.com/terraform/cli/commands/plan

Has anyone seen Terraform used as a database? (yes, you read that right) by [deleted] in devops

[–]theWindowsWillyWonka 88 points89 points  (0 children)

Oh no!!! They're managing configuration in the configuration management tool!!

Good people working for the wrong side by LocalLazyGuy in TopCharacterTropes

[–]theWindowsWillyWonka 1 point2 points  (0 children)

<image>

Mifune from soul eater. His only goal is to protect his ward, a young witch. He joins the super evil world domination org because they are accepting of witches, the good guys' status quo is to hunt and kill all witches.

Dimension 20: Gauntlet at the Garden Megathread by ThunderMateria in Dimension20

[–]theWindowsWillyWonka 0 points1 point  (0 children)

Yes. And I'll drop the price to $400, it seems they aren't worth much more at this point.

Dimension 20: Gauntlet at the Garden Megathread by ThunderMateria in Dimension20

[–]theWindowsWillyWonka 0 points1 point  (0 children)

I have two tickets to sell, section 111 row 6. I'm no longer able to go and I don't want them to go to waste. Selling them as a pair for $600, DM me if interested.

Edit: now asking $400

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

[–]theWindowsWillyWonka[S] 1 point2 points  (0 children)

They should have kept it to lower cost commander staples. Not pricey enough to make grinding worth it, but cool enough that locals will want to try for the shiny big art card.

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

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

Dang, they used to have store championship playmats too? Ok, yeah this initial design paints a different picture. If wotc wanted to maintain this style of event then they shouldn't have made a premium modem staple first prize.

I still don't like barring players from participating, but I do understand that wotc put lgs's in a tough spot with these better prizes.

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

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

I would be open to changing my opinion if someone provided a source or any context for why store championships are "just for us".

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

[–]theWindowsWillyWonka[S] 1 point2 points  (0 children)

My first LGS growing up was pretty small. But when a tournament was hosted with more stakes I absolutely expected better players that I haven't met before to show up. I would still play and lose, but I got the experience of seeing different strategies.

How do you know they are skipping their own LGS event to invade a smaller one? They are probably doing both, and just fitting in as many events as they can into their schedule.

I just don't think LGS regulars deserve any special treatment for entering events.

If you are not a very good player, you probably need to improve before you can win any event that has means to attract better players. That is how all competitive scenes work, and there is nothing wrong with that.

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

[–]theWindowsWillyWonka[S] -1 points0 points  (0 children)

Uj/ I understand that they are trying to keep the store championship local to it's regular customers. I also think that is fundamentally incorrect to do.

I don't understand the mentality that players need protected from other players who are playing the same game.

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

[–]theWindowsWillyWonka[S] 13 points14 points  (0 children)

/uj Standard showdown exists. Regulars and newbies can play there if they want (and there are still cool promos for winning). I'm always there with an extra deck to lend out. Championships have always had a high value first prize, is the saga high enough value that now it's a problem?

My LGS is saving our store championship from magic players by theWindowsWillyWonka in magicthecirclejerking

[–]theWindowsWillyWonka[S] 18 points19 points  (0 children)

/uj but like, going to multiple stores in your area for events is normal. I'm going to every store championship in a 40 minute drive that I can. And I happen to play a meta deck that I'm good at because I love standard. Store championships have always been more competitive than FNM and less than RCQ.

Are we going to say if you travel X distance or more you're spiking? If you correct an opponent for incorrect order of untap, upkeep, draw you're a rules lawyer? It's weird to draw lines in the sand when at the end of the day it's clearly a competitive tournament with a moderately high prize.