Skip to content

Instantly share code, notes, and snippets.

View Mudpuppy12's full-sized avatar
🏠
Working from home

Dennis DeMarco Mudpuppy12

🏠
Working from home
View GitHub Profile
@JayH5
JayH5 / acme-cert-dump.py
Created October 19, 2016 12:03
Dump certificates from Traefik's acme.json
#!/usr/bin/env python
import argparse
import base64
import json
import os
import shlex
import subprocess
import sys
@sivel
sivel / inventory2json.py
Last active December 19, 2023 01:54
Ansible inventory to dynamic inventory JSON output, accepts all inventory input formats
import sys
import json
from ansible.parsing.dataloader import DataLoader
try:
from ansible.inventory.manager import InventoryManager
A24 = True
except ImportError:
from ansible.vars import VariableManager