Scripts

This is a list of scripts I have written. All scripts are licensed under the GNU General Public License, version 2.0.

You are welcome to use the scripts anywhere, and modify them as well, as long as you keep to the terms and conditions within the license.

Jun 13 17:27

api-gen.py

  1. #!/usr/bin/env python
  2.  
  3. """
  4. api-gen 0.1
  5. -----------
  6. This is a quick, simple and dirty script to extract the contents of a
  7. Python module and store it in a QScintilla/Eric4 API file.
  8.  
  9. Replace all instances of "mymodule" with your module name.
  10.  
  11. Written by Raoul Snyman [raoul.snyman AT saturnlaboratories DOT co DOT za]
  12.  
  13. License:
  14. --------
  15. Copyright (c) 2009 Raoul Snyman.
Sep 18 20:25

croncommand.py

  1. # -*- coding: utf-8 -*-
  2.  
  3. ###############################################################################
  4. # CronCommand - Cron Paste Script Command #
  5. # --------------------------------------------------------------------------- #
  6. # Copyright (c) 2009 Raoul Snyman #
  7. # --------------------------------------------------------------------------- #
  8. # This library is free software; you can redistribute it and/or modify it #
  9. # under the terms of the GNU Lesser General Public License as published by #
  10. # the
Mar 26 20:02

lum2olp.py

  1. #!/usr/bin/env python
  2.  
  3. """
  4. lum2olp 0.1 for openlp.org 1.0
  5. ----------------------------------
  6. This is a quick, simple and easy script to convert a Luminous database to
  7. openlp.org version 1.0
  8.  
  9. Written by Raoul Snyman [raoul.snyman AT saturnlaboratories DOT co DOT za]
  10.  
  11. License:
  12. --------
  13. Copyright (c) 2009 Raoul Snyman.
Mar 27 09:34

make_vhost.sh

  1. #!/bin/bash
  2. # Raoul's Make Virtual Host script
  3. # Copyright (c) 2006-2009 Raoul Snyman
  4. # Licensed under the GNU GPL v2.0
  5. # Script variables
  6. DOMAIN="lan"
  7. WEBROOT="/home/www-data"
  8. FWDZONE="/etc/bind/zones/lan.zone"
  9. REVZONE="/etc/bind/zones/1.168.192.in-addr.arpa.zone"
  10. SKELFILE="/etc/apache2/skel/skel.domain"
  11. SITESDIR="/etc/apache2/sites-available"
  12. WEBUSER="www-data"
  13. WEBGROUP="www-data"
  14. FWDIP="192.168.1.254"
  15. REVIP="254"
  16. DNSRELOAD="/etc/init.d/bind9 reload"
  17. WEBRELOAD="/etc/init.d/apache2 reload"
  18. # Make our directories
  19. mkdir $WEBROOT/$1
  20. mkdir $WEBROOT/$1/www
  21. mkdir $WEBROOT/$1/log
Mar 26 20:10

quassel-search.py

  1. #!/usr/bin/env python
  2.  
  3. """
  4. Quassel Search 0.1 for Quassel 0.4
  5. ----------------------------------
  6. This is a quick, simple and easy script to search a Quassel database for some
  7. text in your backlog.
  8.  
  9. Written by Raoul Snyman [raoul.snyman AT saturnlaboratories DOT co DOT za]
  10.  
  11. License:
  12. --------
  13. Copyright (c) 2009 Raoul Snyman.