Skip to content

Instantly share code, notes, and snippets.

View lmacken's full-sized avatar
📟

Luke Macken lmacken

📟
  • Colorado
View GitHub Profile
@lmacken
lmacken / bodhi-signable.py
Created June 8, 2015 04:57
A script that prints out the packages that are ready to be signed
#!/usr/bin/python
"""
Print out a list of builds that need signing.
"""
__requires__ = 'bodhi'
import pkg_resources
import os
import sys
@lmacken
lmacken / fixsubmitters.py
Created August 24, 2015 01:42
A script to fix the update submitters bug with the bodhi1 -> bodhi2 migration.
#!/usr/bin/env python
import __main__
__requires__ = __main__.__requires__ = 'WebOb>=1.4.1'
import pkg_resources
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
@lmacken
lmacken / migrate-pass.py
Created June 5, 2016 06:00
Migrates a 'pass' setup to a different GPG key
#!/usr/bin/env python3
# Re-encrypt all pass files with a different GPG key
# 1) First, add your new key to ~/.password-store/.gpg-id
# 2) Run this script.
# 3) Confirm that things work
# 4) Remove the old backup keys with `find ~/.password-store -name '*.old' | xargs rm`
import os
import shutil
import subprocess
@lmacken
lmacken / lightning_invoice_watcher.py
Last active March 9, 2026 05:58
A simple pylightning invoice handler
import os
import json
import asyncio
import aioredis
from lightning import LightningRpc
LN_RPC_URI = os.path.expanduser("~/.lightning/lightning-rpc")
LN_RPC = LightningRpc(LN_RPC_URI)