Skip to content

Instantly share code, notes, and snippets.

@andycodes00
andycodes00 / 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': }
@andycodes00
andycodes00 / 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"
@andycodes00
andycodes00 / .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