Category Archives: Python

SimpleDB: python MySQLdb wrapper with auto connect

A python MySQLdb wrapper with auto connect function. Continue reading

Posted in Programming, Python | Tagged | Leave a comment

A python exception retry decorator

A retry decorator with exponential backoff. retries a function or method if Exception occurred Continue reading

Posted in Programming, Python | Tagged , , , | Leave a comment

some fabric trap and tricks

Fabric is a Python (2.5-2.7) library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. Here’s some trap and tricks I met and got from my usual use. trap 1: operation error  cause … Continue reading

Posted in Programming, Python, System Administration | Tagged , | Leave a comment

Create new KVM guest from template

Most of us don’t like to install guest OS repeatedly, instead, we often install one guest OS, then do some setup and customization. After that, we make a backup of the disk image(We use it as a template). If we … Continue reading

Posted in Programming, Python, System Administration, Virtualization | Tagged | 3 Comments