I hereby claim:
- I am lmacken on github.
- I am lmacken (https://keybase.io/lmacken) on keybase.
- I have a public key whose fingerprint is A89B D347 9921 19D2 6B6B 2F8A 1471 8698 9DFC 42B5
To claim this, I am signing this object:
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) |
#!/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 |
#!/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. | |
# |
#!/usr/bin/python | |
""" | |
Print out a list of builds that need signing. | |
""" | |
__requires__ = 'bodhi' | |
import pkg_resources | |
import os | |
import sys |
import operator | |
import feedparser | |
import multiprocessing.pool | |
DAYS_BACK = 498 # 2014-1-1 -> 2015-05-14 https://daycalc.appspot.com/01/01/2015 | |
RSS = 'https://fedorahosted.org/{}/timeline?ticket=on&changeset=on&milestone=on&wiki=on&max=50&format=rss&daysback={}&authors=' | |
active_projects = {} | |
def handle(project): |
from systemd import journal | |
from twisted.internet import reactor | |
UNITS = ['suricata.service'] | |
class JournalMonitor(object): | |
def __init__(self): | |
self.journal = journal.Reader() |
from systemd import journal | |
from twisted.internet import reactor | |
UNITS = ['suricata.service'] | |
class JournalMonitor(object): | |
def __init__(self): | |
self.journal = journal.Reader() |
#!/bin/sh -x | |
# 1000000 loops, best of 3: 1.29 usec per loop | |
python3 -m timeit --setup "import re" "re.match(r'atomic-compose-(.*)\.service', 'atomic-compose-rawhide.service').groups()[0]" | |
# 1000000 loops, best of 3: 0.807 usec per loop | |
python3 -m timeit --setup "import re; r = re.compile(r'atomic-compose-(.*)\.service')" "r.match('atomic-compose-rawhide.service').groups()[0]" | |
# 1000000 loops, best of 3: 0.575 usec per loop | |
python3 -m timeit "'atomic-compose-rawhide.service'.split('.')[0].split('-')[-1]" |
I hereby claim:
To claim this, I am signing this object:
# Calculate the percentage of Fedora accounts that have package commit privileges | |
import os | |
import getpass | |
import pkgdb2client | |
from fedora.client import AccountSystem | |
pkgdb = pkgdb2client.PkgDB() | |
num_packagers = len(pkgdb.get_packagers('*')['packagers']) | |