Skip to content

Instantly share code, notes, and snippets.

@iiie
iiie / qr2f.py
Last active June 1, 2019 08:52
#!/usr/bin/env python
"""
Dependancies:
pip install "qrtools==1.4" "pyotp==2.2.6" "urllib3==1.23"
Usage:
qr2f.py /path/to/screenshot1 [screenshot2 [screenshot3]]
"""
import urllib
import qrtools
@iiie
iiie / gist:5104266
Last active December 14, 2015 14:58
Beginnings of a topic changing bot plugin for pycon and supybot.
from dateutil.parser import parse as date_parse
from datetime import datetime, timedelta
import json
import operator
import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
@iiie
iiie / notku
Created June 24, 2012 09:46
Get env in virtualenv...
#!/usr/bin/env python
# Author: iiie
# Need: Get environment variables into virtualenv / Django
# Usage:
# Add one or more keys:
# notku config:add AWS_KEY=abc123 [ANOTHER_KEY=another_value=allowed ...]
# Removed one or more keys:
# notku config:remove AWS_KEY [ANOTHER_KEY ...]
# List all keys
# notku config