Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@savchenko
savchenko / unqt.py
Created March 18, 2026 21:56
Recover KeePassXC settings as plaintext
from PyQt5.QtCore import QSettings
for k in QSettings("keepassxc.ini", QSettings.IniFormat).allKeys():
print(k, settings.value(k))
@savchenko
savchenko / job_details.py
Created May 28, 2026 07:31
PBS job details in human-readable form
#!/usr/bin/env python3
import sys
import subprocess
import re
def get_value(pattern: str, text: str, default: str = "?") -> str:
"""Extracts the first match of a regex group"""
match = re.search(pattern, text)