Scripts

api-gen.py

This is a quick, simple and dirty script to extract the contents of a Python module and store it in a QScintilla/Eric4 API file.

class.drupal.php

An exporter class for the vanilla2export.php script.

croncommand.py

The croncommand module allows you to register a ``cron`` command with paster. The aim of this command is to give your Pylons application the ability to run a set of scheduled tasks via a UNIX cron job.

drupal2vanilla_permissions.sql

A script to update the permissions after importing data from Drupal.

face_detect.py

#!/usr/bin/python

# face_detect.py

# Simple Face Detection using OpenCV.
# Usage: python face_detect.py 

import sys
import os.path
from PIL import Image
from opencv.cv import cvCreateImage, cvSize, cvCvtColor, CV_BGR2GRAY, \
    cvCreateMemStorage, cvClearMemStorage, cvEqualizeHist, IplImage, \
    cvLoadHaarClassifierCascade, CV_HAAR_DO_CANNY_PRUNING, \
    cvHaarDetectObjects
from opencv.highgui import cvLoadImage
from pprint import pprint

WIDTH_RATIO = 0.87378640777
HEIGHT_RATIO = 1.14444444444

def resize_and_crop(image,  

lum2olp.py

This is a quick, simple and easy script to convert a Luminous database to openlp.org version 1.0

make_vhost.sh

My original "make vhost" script for creating new virtual hosts on my web server at home.

QBazaar.desktop

A desktop file to add a QBazaar submenu to the KDE service menu.

quassel-search.py

This is a quick, simple and easy script to search a Quassel database (SQLite only) for some text in your backlog.

sniff_browser.py

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Copyright (c) 2010 Raoul Snyman

This file is licensed under the GNU GPL.

``sniff_browser.py`` is a file with a single goal: To figure out what the heck
your browser is, based on the user agent string.