This file contains 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 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 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 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 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. |
This file contains 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 | |
""" Collect data on fedmsg reliability. | |
The gist is that we start up and go into a loop. Each time we wake up we: | |
- Ask koji for all the builds that were started in the last hour. This | |
includes builds that eventually fail or are in progress. | |
- Ask fedmsg for all the koji events from the past error. Throw out all | |
the ones except the 'build start' events. | |
- Compare the number of new koji builds to the number of fedmsg new build | |
messages. They should be the same. |
This file contains 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
sudo yum -y install python-virtualenv | |
virtualenv my-venv | |
source my-venv/bin/activate | |
git clone url-for-bloom | |
cd bloom | |
python setup.py develop | |
./bin/bloom-generate |
This file contains 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 | |
""" Given a username, add the julython hook to all of your repos. | |
Its kind of a pain... this script needs your username, your password, *and* an oauth token. | |
To generate an oauth token, do the following: | |
- Navigate to github.com. | |
- Click on the "account settings" icon in the top right. | |
- Click on the "Applications" menu on the left. | |
- Click on "Create new token" next to "Personal API Access Tokens" |
This file contains 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 | |
# -*- coding: utf-8 -*- | |
# (c) 2013, Ralph Bean <rbean@redhat.com> | |
# LGPLv2+ | |
# | |
# You can pass this action an arbitrary number of kw arguments which will be | |
# used to make up the main message body (json). | |
# | |
# Dedicated to Seth Vidal. This was his idea. |
This file contains 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 fedmsg | |
import fedmsg.config | |
import fedmsg.crypto | |
import M2Crypto.X509 | |
config = fedmsg.config.load_config() | |
import logging | |
logging.basicConfig() |