Skip to content

Instantly share code, notes, and snippets.

@andrewbunday
andrewbunday / cdl2ccc.py
Created August 19, 2011 15:40
A Simple extractor to parse a valid xml based CDL and convert it into a simplified ColorCorrectionCollection xml file.
#!/usr/bin/env python
#
# Author: Andrew Bunday
# Date: 19/08/11
#
# A Simple extractor to parse a valid xml based CDL and convert it into
# a simplified ColorCorrectionCollection xml file.
import xml.etree.ElementTree
from xml.etree.ElementTree import XMLParser, ElementTree, Element
@andrewbunday
andrewbunday / run_stages.pp
Created July 7, 2011 16:33
Is there any way to specify the run stage for a puppet class I wish to include in several other classes?
Question:
Is there a way to make myclass run before my other
classes without defining explicit relationships?
==================================================
site.pp:
stage{ 'first': }
@andrewbunday
andrewbunday / install_nvidia-current.py
Created July 6, 2011 10:41
Replacing Jockey-text with a few short lines of simplified python
#!/usr/bin/env python
import apt
import subprocess
#import fnctrl <-- filelock on modprobe blacklists...
#import XKit.xutils <-- xorg.conf file editing
driver = "nvidia-current"
xorg_conf_path = "/etc/X11/xorg.conf"
@andrewbunday
andrewbunday / .SciteUser.properties
Created June 28, 2011 11:51
My current scite properties. Seriously messed up and not for the faint of heart
line.margin.width=1+
line.margin.visible=1
view.python.whitespace=1
view.eol=0
# Indentation
tabsize=4
indent.size=4
use.tabs=0
indent.auto=1