db0

joined 2 years ago
MODERATOR OF
[–] db0 -3 points 3 weeks ago* (last edited 3 weeks ago)

I hate this repeated idea that everyone can make good art, and it just takes time and hard work. Motherfucker, we ain't got the time! Just let people enjoy seeing an expression for an idea in the their head without spending time or money they don't have

[–] db0 6 points 3 weeks ago

Even in the right quadrants!

[–] db0 12 points 3 weeks ago (1 children)

And if you have too many rules, it's anarcho-communism

[–] db0 4 points 3 weeks ago* (last edited 3 weeks ago)

They will start paying you peanut flakes, to harvest every word you write directly and to allow them to use your browser as a scraping bot, mark my words

[–] db0 13 points 3 weeks ago (1 children)

Mainstream media still thinking you can vote fascism away

[–] db0 5 points 3 weeks ago

Tesseract is very much different from Proton by now however

[–] db0 18 points 3 weeks ago (2 children)

I'll keep it up until it breaks in the hope someone forks it

[–] db0 6 points 3 weeks ago* (last edited 3 weeks ago)

https://github.com/db0/fedi-safety can scan images pre and post upload for you for CSAM, including novel GenAI ones. If you need pre-scanning, you will also need to run this service https://github.com/db0/pictrs-safety along with your instance. Both of these need a budget GPU to do the scans, but you can use your home PC.

[–] db0 3 points 3 weeks ago* (last edited 3 weeks ago)

We know pre-farming societies were far more balanced between the sexes, if not outright matriarchical

[–] db0 13 points 3 weeks ago* (last edited 3 weeks ago)

That's always admirable. Social media can be very toxic. hopefully you'll be able to stay away for good, but so much is run via social media atm that it's hard to completely disconnect.

[–] db0 12 points 3 weeks ago

Hexbear users routinely cause strife in other instances' comms just because they criticize the ML regimes they support.

 

I recently had the need to export an AAP inventory and use it manually with ansible. However there's no easy way to do this and I couldn't find anything online to do this, so I crafted a little conversion script.

First of all, you need to export your AWX/AAP inventory from the API (just go to https://your.awx.domain/api/v2/inventories/<inventory id>/script/?format=json&hostvars=1) and save the file locally.

Afterwards, copy the below script and run it against the json inventory

import json
import yaml
import argparse

def convert_inventory(json_file, yaml_file):
    try:
        with open(json_file, 'r') as infile:
            inventory = json.load(infile)
        
        with open(yaml_file, 'w') as outfile:
            def convert_lists_to_dicts(obj):
                if isinstance(obj, list):
                    return {str(item): None for item in obj}
                elif isinstance(obj, dict):
                    return {key: convert_lists_to_dicts(value) for key, value in obj.items()}
                else:
                    return obj

            inventory = convert_lists_to_dicts(inventory)            
            for hostname,hostvars in inventory['_meta']['hostvars'].items():
                inventory['all']['hosts'][hostname] = hostvars
            del inventory['_meta']
            yaml.dump(inventory, outfile, default_flow_style=False)            
        print(f"Converted {json_file} to {yaml_file} successfully.")
    except Exception as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description="Convert Ansible inventory from JSON to YAML format.")
    parser.add_argument("json_file", help="Path to the input inventory.json file")
    parser.add_argument("yaml_file", help="Path to the output inventory.yml file")
    
    args = parser.parse_args()
    convert_inventory(args.json_file, args.yaml_file)
27
New Ansible comm (lemmy.dbzer0.com)
submitted 4 months ago* (last edited 4 months ago) by db0 to c/[email protected]
 

Hey all, I've created a comm for my favourite infra automation tool: Ansible.

There's one in l.w. but it's been abandoned for a while now and barely has any traffic, so I felt it's a good time to distribute things a while

[email protected]

EDIT: Ignore the thumbnail. Lemmy is bugging out again with the previews.

 

Was very excited to get this expansion as it added some elegant additions to the well-crafted formula. I managed to play 3 games since Friday with it (3pl) and the experience solidified my view on it and its place as one of my favorite board games.

Pic is from the first game we played.

The Sardaukar Commanders add a much needed early tempo option for Solari. Normally you don't really have anything to do with Solari in the early term, as it's usually not worth spending it for 1 water when you could be saving it for a council position or a swordmaster. However now with the Sardaukar in play in some easy to reach positions, it gives players an incentive to spend their early money to quickly grab one of them before they're all snatched away.

Likewise in the late game, once you have your council seat and swordmaster, Solari didn't have that much impact outside the occasional conflict or card. Now if you have a few Sardaukar in your employ, they give a significant power to your combat efforts by quickly translating your spare change into extra reinforcements, plus some good abilities. I really like the difficult decisions this opens.

Likewise Technologies give more versatility to spice. Without them, someone who didn't have a lot of access to the influence side of the board, didn't have a ton of options for using spice, other than going to the guild now and then. The Ix tech now allows someone who didn't get access to a lot of influence cards, or who doesn't care about combat as much, to use green cards to utilize their spare spice as well. I am always up for giving more options to the players. The tech effects can also be quite powerful when paired with the right leaders. I won my second game handily by making a tech-intrigue combo and just spamming troops out constantly through it.

Finally the new leaders are all quite nice, and I like the more unique directions they took with some of them like the Guild Navigator.

Ultimately, very very happy with this addition, even if some of my playing mates were more muted in their appraisal.

236
Antiwar protests (lemmy.dbzer0.com)
submitted 4 months ago by db0 to c/anarchism
 
754
crushing it (lemmy.dbzer0.com)
submitted 4 months ago by db0 to c/adhd
 
305
submitted 4 months ago by db0 to c/adhd
 
230
Monolith Hate (lemmy.zip)
submitted 4 months ago by db0 to c/[email protected]
172
Enter a new world (sh.itjust.works)
submitted 4 months ago by db0 to c/[email protected]
37
:-) (feddit.org)
submitted 4 months ago by db0 to c/[email protected]
 

Cross-posted from ":-)" by @Venus_[email protected] in [email protected]


372
submitted 4 months ago by db0 to c/[email protected]
 
view more: ‹ prev next ›