Skip to content

Instantly share code, notes, and snippets.

View danofsteel32's full-sized avatar

Daniel Davis danofsteel32

View GitHub Profile
@danofsteel32
danofsteel32 / incus-dev-container.sh
Last active September 21, 2025 14:26
Helper script for creating Incus containers that can be used for Ansible development.
#!/usr/bin/env bash
# MIT License
# Copyright (c) 2025 Dan Davis
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@danofsteel32
danofsteel32 / pnc-vw-stmt.py
Created July 31, 2023 00:06
Extract transactions from PNC Virtual Wallet Statement PDF
"""
Pulls balance summary from statement and validates that deposits and withdrawals
add up to match the balance summary. If they don't match the transactions will
be saved to <month>-<year>-invalid.csv so you can try and debug why.
Python and pdfplumber are the only dependencies
$ pip install pdfplumber
Extract transactions from all statements in a directory
$ python pnc-vm-stmt.py ~/Documents/accounting/2020/statements/
@danofsteel32
danofsteel32 / visistruct.py
Created November 10, 2022 22:21
Visualize Construct in Python
"""
MIT License
Copyright 2022 Dan Davis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is