I hereby claim:
- I am nloadholtes on github.
- I am nloadholtes (https://keybase.io/nloadholtes) on keybase.
- I have a public key whose fingerprint is C29F 1D65 3ED3 8281 A781 2EA2 F4B8 AD62 6976 378E
To claim this, I am signing this object:
| # This will create a local (project specific) alias | |
| # to see what changes are outgoing from your repo/branch | |
| # (like what 'hg out' supplies, but specific to the | |
| # specified branch | |
| git config --local "alias.out log origin/<branch_name>..HEAD" |
| # | |
| # worker.py | |
| # | |
| # Based on code from http://www.darkcoding.net/software/choosing-a-message-queue-for-python-on-ubuntu-on-a-vps/ | |
| # | |
| import time | |
| from gearman import GearmanWorker | |
| def speakTask(gearman_worker, job): |
| # | |
| # client.py | |
| # | |
| # Based on code from http://www.darkcoding.net/software/choosing-a-message-queue-for-python-on-ubuntu-on-a-vps/ | |
| # | |
| import sys | |
| import time | |
| from gearman import GearmanClient |
| 217 python | |
| 113 web | |
| 77 django | |
| 55 linux | |
| 55 javascript | |
| 54 programming | |
| 50 design | |
| 47 mysql | |
| 47 data | |
| 44 computer |
| # | |
| # script for getting data from pic2shop.com | |
| # Nick Loadholtes <[email protected]> | |
| # | |
| # Nov 26, 2012 | |
| # | |
| import csv | |
| import sys | |
| import random | |
| import time |
| import random | |
| import string | |
| CHARS = string.letters + " " + string.digits | |
| def scramble(input, keep_length=True): | |
| output = [] | |
| for x in input: | |
| output.append(random.choice(CHARS)) |
| # For unittest based tests, this works: | |
| if __name__ == '__main__': | |
| unittest.main() | |
| # And the equivilent in nose is this: | |
| if __name__ == '__main__': | |
| import nose | |
| nose.run(defaultTest=__name__) |
| nosetests -vvvvv --pdb -s |
I hereby claim:
To claim this, I am signing this object:
| Newer version of Ubuntu (and Linux mint) have .Xauthority and that will interfere with your ability to run X11 apps from a docker container. Here's how you get around that: | |
| docker run -ti -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY --net=host -v $HOME/.Xauthority:/root/.Xauthority <and the rest of your docker string...> |