Skip to content
Zcentric

The old blog · Tag

python

  1. SPF DNS Lookup check for Nagios

    Did you know that there is a max number of DNS lookups that can be done for an SPF lookup. The number is 10 and that includes any a or mx records along with includes to different hosts. I noticed this when I ran a SPF …

  2. Fabric Shell

    Tweet I recently wrote a quick little fabric function to create a fabric shell. This works with a stock fabric install, you just might have to change where you import it from. It is at my Github page below. …

  3. Tav’s Fabric Fork Quick Start

    Tweet I’ve been a big fan of the fabric project for a long time now. It has made my life very easy in the past and gets better with each new release. Well a few weeks ago I got introduced to a fork of the project …

  4. Find the real MongoDB command for pyMongo

    Tweet I am in the middle of writing a MongoDB plugin for cacti using pymongo and ran into a little issue. In the Mongo shell this works > db.stats() { "collections" : 19, "objects" : 145971, "dataSize" : 64785380, …

  5. Google Apps List Shared Contacts

    Tweet I’ll be the first to call out Google that their gdata python library for connecting into the Google Apps API is the worst. I wanted to grab all the shared contacts from our domain and it was a giant in the …

  6. Django: Custom Decorator with an Argument

    Tweet Sometimes you want to be able to create a decorator for functions in Django but have the ability to pass in an argument into the decorator. I came across this when I wanted to switch from the require_login …

  7. What Rollout will be?

    Tweet I have been debating just helping with fabric or writing my own app for a week now and I just think what I need and want fabric just isn’t and too much work to get it to the way I want it to be. So here are …

  8. Rollout has been designed

    Tweet I’m a big fan of fabric, a python module to make deployments easy. It is still very new but has some great features and some major short comings I don’t think the authors thought of before they …

  9. Reason #1 on why Django is great

    Tweet All the crazy helper function they have for models to display information in templates. Say I have a model that looks like this with a choice field (it will get rendered as a select input in html. SEX_CHOICE = ( …

  10. Install fabric on Redhat/CentOS 5

    Tweet Fabric is a great tool for helping deploy applications. It is written in Python and still in it’s early stages. The big issue is that fabric will not run on python v2.4. That is a problem since Redhat/CentOS …

All posts