Skip to content

Instantly share code, notes, and snippets.

View CrackerJackMack's full-sized avatar

Kevin Landreth CrackerJackMack

View GitHub Profile

Keybase proof

I hereby claim:

  • I am crackerjackmack on github.
  • I am crackerjackmack (https://keybase.io/crackerjackmack) on keybase.
  • I have a public key whose fingerprint is 7936 354B 268F 4339 FE89 862F F5A2 E83C 0909 79CC

To claim this, I am signing this object:

[program:couchpotato]
command = /home/downloader/CouchPotatoServer/CouchPotato.py
directory = /home/downloader
user = downloader
def read_regions(datafile):
regions = []
for line in datafile.readlines():
fields = line.strip().split(' ')
if not fields or not fields[0]:
continue
if fields[3] == '[mem':
start, end = fields[4].split('-')
devel/haigha//examples/gevent_hello.py:13:11: E401 multiple imports on one line
devel/haigha//examples/gevent_hello.py:27:1: W293 blank line contains whitespace
devel/haigha//examples/gevent_hello.py:28:3: E111 indentation is not a multiple of four
devel/haigha//examples/gevent_hello.py:30:1: W293 blank line contains whitespace
devel/haigha//examples/gevent_hello.py:36:1: W293 blank line contains whitespace
devel/haigha//examples/gevent_hello.py:39:1: W293 blank line contains whitespace
devel/haigha//examples/gevent_hello.py:43:1: W293 blank line contains whitespace
devel/haigha//examples/gevent_hello.py:50:1: W293 blank line contains whitespace
devel/haigha//examples/gevent_hello.py:52:55: E231 missing whitespace after ':'
devel/haigha//examples/gevent_hello.py:56:1: W293 blank line contains whitespace
@CrackerJackMack
CrackerJackMack / purge-cloudstack.sh
Created June 22, 2012 12:14
PEW PEW reset cloudstack as a fresh install
/etc/init.d/cloud-management stop
mysql -ppassword -e 'drop database cloud'
mysql -ppassword -e 'drop database cloud_usage'
cloud-setup-databases cloud:password@localhost --deploy-as=root:password
rm -rf /var/log/cloud/management/*
cloud-setup-management
/etc/init.d/cloud-management start
@CrackerJackMack
CrackerJackMack / object-storage-delete-container.py
Created May 29, 2012 12:42
SoftLayer object storage recursive container deletion
import object_storage
def get_objects(container):
f = container.objects()
objlist = list()
while True:
objlist = objlist + f
try:
f = container.objects(marker=f[-1].name)