This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # Simple Python 3 script to create a browsable file tree from a Proxmox pmxcfs config.db. | |
| # Can be used for restore tasks or other investigation purposes. | |
| import sqlite3 | |
| import os | |
| import argparse | |
| def create_hierarchy(db_file, output_dir): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| ACME_SH_ROOT=/etc/.acme.sh | |
| WEBCONF_ROOT=/etc/apache2/sites-available.acmesh | |
| WEBROOT=/var/www/html | |
| RELOADCMD='systemctl reload apache2.service' | |
| dom=() | |
| altdoms=() | |
| expiry=() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # wbx.py - dump MikroTik winbox addresses.wbx file format | |
| # Based on: https://github.com/simeonmiteff/junkbox/blob/master/wbx.py | |
| # Fixed & amended for Python 3 and added JSON output. | |
| import sys | |
| import json | |
| def munge_pair(pair): | |
| """ Convert integer values to integers """ |