Uli

joined 1 year ago
[–] Uli@sopuli.xyz 5 points 2 hours ago

Hey, that's longer than I can run.

[–] Uli@sopuli.xyz 8 points 8 hours ago (1 children)

No, you've misunderstood. She married the Bigfoot and now she's suing because she was perfectly happy not knowing he was just a bear. They had a destination wedding in London and the divorce lawyer's bear-wedding annulment fee was 125 pounds.

[–] Uli@sopuli.xyz 8 points 1 month ago (2 children)

I had this alarm clock, meaning this series of sounds will be baked into my brain until the day I die.

[–] Uli@sopuli.xyz 49 points 1 month ago (1 children)

It's got your number.

[–] Uli@sopuli.xyz 4 points 1 month ago

Possibly. Is your husband an ass man?

[–] Uli@sopuli.xyz 1 points 1 month ago (1 children)

For sure, that's what I meant by membership. There's just so many different creators I watch, I can't afford to support them all directly. Maybe I'll make some playlists to play on the TV with ads while I'm out of the house.

[–] Uli@sopuli.xyz 9 points 1 month ago (4 children)

I've used an adblocker for ages as well, though I do wish content creators on YouTube could get some passive non-membership revenue from me without me having to disable my adblock and look directly into the Ark of the Covenant. I could get Premium, but at that point, I feel like I've negotiated with a terrorist.

[–] Uli@sopuli.xyz 1 points 1 month ago

Read through the Readme and it's definitely a good tool to know about. It doesn't fit the needs of my current problem, but I'm certain I'll use it in the future for context sensitive searching, since grep/awk/sed/tr have definitely fallen flat for me in the past. I might also be able to study how they utilized tree-sitter CLI when I explore my own implementation.

For my purposes, I want to take a group of similar-yet-different YAML file sets (though file type should be arbitrary), and feed them through a tool that will spit out a YAML template containing everything that is shared between multiple sets.

Then, I want it to create a file for each YAML which defines which parts to pull from the template file and a list of variables to be inserted into holes in the templates. Basically creating a madlib that can recreate any file in the original group given the right list of variables to insert.

For example, if I have a hundred YAML files that are mostly similar but contain different project names, have different server types provisioned, and are pulling different product versions, I would want this script to parse all hundred files and spit out a template that could be used as the basis to build any of the hundred files. The template would be combined with a hundred variable trees that would insert each unique part of each file into the right place.

In effect, I could have a small variables file that gives only the unique portions of the equivalent YAML - in this case, it would contain only the project name, the server type, the product version. Then, these small files could be combined with the universal template to recreate the original hundred YAML files. But unlike using a simple override mechanism, I would be able to change elements of the template YAML including broad structural changes, and after some processing, the change would affect all one hundred output YAMLs.

One could track things like environment variables that are specific to a certain project version and require that whenever a project version has a particular value to insert a particular environment variable into the output YAML. Or a centralized file could be made specifying which product versions correspond to which projects, allowing the engineer to change all product versions for a given set of projects in one go. Or one could create a universal template of IaC code that's applicable to a broad swath of use cases and quickly build out a full set of YAML manifests and Terraform files using a small file that specifies what components will be needed and where to authenticate to the server.

I'm not aware of any tool that does this, but I think tree-sitter gets me much of the way there. If I can use it to parse any given file into a context aware tree, I would then need to make a script that combines the shared features of many context trees and splits the unique features out into small variable files. Then a script to merge them back together as needed. And something to manage file system structure, such as whether to parse every file individually or to strategically merge some sets so you have one variable file that produces multiple output YAML.

Sorry I'm brainstorming at you, just trying to figure out if the tool I'm envisioning is even feasible. Seems like it is, but I'll have to figure out how to use tree-sitter CLI before I begin.

[–] Uli@sopuli.xyz 3 points 1 month ago (3 children)

Pirate keys for sure. Not using one is just asking for a stranger to grab your booty.

[–] Uli@sopuli.xyz 30 points 1 month ago (5 children)

Just built my first fully dedicated Linux machine. Still keeping my old Windows desktop around purely because I play League of Legends and they use a kernel level anticheat, so it won't run on VM.

Fun fact, ever since Riot made it mandatory to install their rootkit if you want to play their games, every time I try to eject a flash drive, it says it can't eject because it's in use - even if I just plugged it in. And that's super comforting.

[–] Uli@sopuli.xyz 54 points 1 month ago (1 children)

Since they seem really intent on collecting all the Taiwanese signs and flags, sounds like it would help if people from all the other countries brought their homemade (hotelmade?) Taiwan flags to the closing ceremony.

[–] Uli@sopuli.xyz 4 points 2 months ago (1 children)

It is time to fill your role in the family business, Wishbone.

 

🦁🐯🇰🇪

 

magicaltrevor:

Everyone loves Magical Trevor 🧙‍♂️

Cuz the tricks that he does are ever so clever

Look at him now

Disappearing a cow 🐄

(Where is the cow?) 🤷‍♂️🐄

(Hidden right now) ❓🐄❓

Taking a bow, it's Magical Trevor 🧙‍♂️

Everybody's seen that the trick is clever

Look at him there

With his leathery,

leathery

whip

It's made of magic

And with a little flick—

Yeah, yeah, yeah, the cow is back 🐄😲

Yeah

Yeah

Yeah

The cow is back

Back, back

Back from his magical journey

What did he see? 🤔

🌌 In the parallel dimension 🌌

He saw beans

Lots of beans 🍛

🍛 Lots of beans 🍛

🍛🍛🍛 Lots of beans 🍛🍛🍛

Oh

Beans 🍛

🍛 Lots of beans🍛

🍛🍛🍛 Lots of beans 🍛🍛🍛

🍛 Lots 🍛 of 🍛 beans 🍛

Yeah, yeah...

goto magicaltrevor;

view more: next ›