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
<domain type='qemu'> | |
<name>qemu</name> | |
<uuid>00000000-0000-0000-0000-000000000000</uuid> | |
<memory>219136</memory> | |
<currentMemory>219136</currentMemory> | |
<vcpu>1</vcpu> | |
<os> | |
<type arch='i686' machine='pc'>hvm</type> | |
<boot dev='hd'/> | |
</os> |
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 | |
import sys | |
import urllib | |
import json | |
URL = "http://beta-api.formspring.me/answered/list/%s" | |
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 | |
# | |
# Bug Prediction script inspired by: | |
# http://google-engtools.blogspot.com/2011/12/bug-prediction-at-google.html | |
# Roman Bogorodskiy <bogorodskiy@gmail.com> | |
# | |
from __future__ import print_function | |
import argparse |
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
Day job: software engineer | |
Favorite Python project: libcloud | |
Favorite Conference: pycodeconf :) | |
Python Experience Level: mid-senior |
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
GitHub username: novel | |
Day job: Software Engineer | |
Favorite open source project: FreeBSD | |
Open Source contributions (if any): FreeBSD, libcloud, conky, etc | |
Stranded on an island, what 3 items do you take: laptop, dynamo, swimming suit | |
Tie-breaker, pick a number between 1 and 20,000: 13635 |
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 | |
from libcloud.compute.types import Provider | |
from libcloud.compute.providers import get_driver | |
NOVA_API_KEY="" | |
NOVA_USERNAME="" | |
# NOVA_URL="http://192.168.0.1:8774/v1.0/" | |
if __name__ == "__main__": |
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 | |
from libcloud.compute.types import Provider | |
from libcloud.compute.providers import get_driver | |
EC2_ACCESS_KEY="" | |
EC2_SECRET_KEY="" | |
# EC2_URL="http://192.168.0.1:8773/services/Cloud" | |
if __name__ == "__main__": |
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
(17:15) novel@reemsky:~/code/lc-tools[lb] %> ./lb-list -p gg | |
23517 foo 10.0.0.66:80 | |
23526 bar 10.0.0.67:80 | |
23530 test2 10.0.0.68:80 | |
(17:15) novel@reemsky:~/code/lc-tools[lb] %> ./lb-node-list -p gg -i 23526 | |
<LBNode: id=1868109, address=10.0.0.76:80> | |
<LBNode: id=1868110, address=10.0.0.77:80> | |
<LBNode: id=1868111, address=10.0.0.78:80> | |
(17:16) novel@reemsky:~/code/lc-tools[lb] %> ./lb- | |
lb-add* lb-destroy* lb-list* lb-node-add* lb-node-list* lb-node-remove* |
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 | |
import threading | |
import time | |
class Foo(object): | |
def modify_bar(self, **kwargs): | |
bar_id = kwargs['bar_id'] |
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 | |
import libcloud.providers | |
import libcloud.types | |
from secret import USERNAME, PASSWORD | |
class Example(object): | |
def __init__(self): |