View gist:6ab69b960f490b62902d5e198b9d6361
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 milliams on github. | |
* I am milliams (https://keybase.io/milliams) on keybase. | |
* I have a public key whose fingerprint is 6C58 D45D A75C 995D C1B1 49D3 ACDE B490 E9DE 016D | |
To claim this, I am signing this object: |
View static_vars.py
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
def static_vars(**kwargs): | |
""" | |
Decorate a function and provide it with some static variables. | |
>>> @static_vars(counter=0) | |
... def foo(): | |
... foo.counter += 1 | |
... return foo.counter | |
>>> foo() | |
1 |
View launch_ganga
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 | |
""" | |
This script will launch Ganga with an appropriate interpreter | |
""" | |
from __future__ import print_function | |
import os | |
import re | |
import subprocess |
View TestLittleGanga.py
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
def test_ganga(ganga, monitor): | |
""" | |
Test that we can submit and monitor jobs | |
""" | |
j = ganga.Job() | |
j.submit() | |
monitor(j) | |
assert j.status == 'completed' | |
View Monitoring.py
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
""" | |
Requirements | |
------------ | |
We need a thread-safe list of queued back-ends and of running back-ends | |
We need to be able to rate-limit per-backend | |
Implementation | |
-------------- |
View gist:116162
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
# /etc/init.d/apache2 restart | |
httpd2-prefork: Syntax error on line 116 of /etc/apache2/httpd.conf: | |
Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: | |
Can't locate API module structure `falcon_module' in file /usr/lib64/apache2/mod_falcon.so: | |
/usr/lib64/apache2/mod_falcon.so: undefined symbol: falcon_module |
View gist:114248
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
testsuite % faltest -s -v 109 | |
Falcon unit test package. | |
Version 0.9.1.6 (crane-RC1) | |
109b: fail. | |
109b - Space-saving file operations | |
Script file: ./files2.fal | |
Category: rtl | |
Subcategory: file |