This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Calculate "dev to release" leadtime. | |
Prints out statistics about the time between the first commit of a new feature | |
and the tag where that feature gets released. | |
Ideally, we'd like to compute the time between first commit and deployment to | |
production, but we don't have an easy way to reliably access logs of when | |
things were deployed against when they were committed in git. | |
A quick script for my talk on technical debt at Flock 2015. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" This script looks for people who have assigned themselves the | |
'approveacls' status in pkgdb by checking the fedmsg history. | |
Gotta first do:: | |
$ yum install \ | |
fedmsg \ | |
python-fedmsg-meta-fedora-infrastructure \ | |
python-requests \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import getpass | |
import sys | |
def get_repos(username, auth): | |
""" username should be a string | |
auth should be a tuple of username and password. | |
eventually, we'll switch it to use an oauth token | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Messing around with scikit-learn. """ | |
import sys | |
import numpy as np | |
import scipy.sparse | |
import sklearn.linear_model | |
import sklearn.datasets | |
import sklearn.svm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" Script to scrape images from a flickr account. | |
Author: Ralph Bean <[email protected]> | |
""" | |
import ConfigParser | |
import urllib | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ralphbean on github. | |
* I am ralphbean (https://keybase.io/ralphbean) on keybase. | |
* I have a public key whose fingerprint is 9450 4C3A E11D D197 9200 58AB A90E D7DE 9710 95FF | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.pyc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
graph.json | |
*.pyc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code that goes into moksha looks something like this. | |
import zmq | |
context = zmq.Context() | |
socket = context.socket(zmq.REP) | |
socket.bind('ipc://127.0.0.1:5555') | |
# So, this can be done way more efficiently than a 'while 1' with zmq.Poller. | |
# But, nevermind that.. txZMQ allows us to ditch the loop and plug in to the | |
# Twisted framework for events. |