Skip to content

Instantly share code, notes, and snippets.

local auraWhiteList = {
["Power Word: Fortitude"] = true,
["Prayer of Fortitude"] = true,
["Shadow Protection"] = true,
["Prayer of Shadow Protection"] = true,
["Heroic Presence"] = nil,
["Gift of the Naaru"] = true,
["Gift of the Wild"] = true,
["Mark of the Wild"] = true,
["Well Fed"] = true,
--[[
oUF Saul: 30100.05
Credits: P3lim for his layout and coding
I grants anyone the right to use this work for any purpose,
without any conditions, unless such conditions are required by law.
--]]
do
local HOUR = 60*60
local zones = {
{ "EDT", HOUR * 13.5 },
{ "CDT", HOUR * 14.5},
{ "MDT", HOUR * 15.5},
{ "PDT", HOUR * 16.5},
{ "PST", HOUR * 17.5},
{ "AKDT", HOUR * 18.5},
{ "HAST", HOUR * 19.5},
#!/usr/bin/env python
#
#
#
#
#
import os, stat, gtk
class BatchPrintConfirmationWindow:
@airtonix
airtonix / Minecraft Mod Installer for Linux
Created May 21, 2011 09:20
Simple minecraft mod installer for mods that require .class files to be inside the ~/.minecraft/bin/mnecraft.jar file.
#!/bin/sh
TIMESTAMP=`date +%Y%m%d-%H%M%S`
INSTALLATION_TEMP=/tmp/minecraft
MINECRAFT_BIN=~/.minecraft/bin
MINECRAFT_BACKUPS=$MINECRAFT_BIN/../backups
# make our temporary directory
echo "Creating temporary directory"
mkdir $INSTALLATION_TEMP -p
@airtonix
airtonix / relative path prcursor
Created June 11, 2011 05:59
agnostic precusror for applications requiring absolute pathsrequiring
import os
HEREPATH = os.path.realpath(
os.path.dirname(
os.path.abspath(__file__)
)
)
import os
import sys
import ConfigParser
gettext = lambda s: s
DEBUG=True
HEREPATH=os.path.realpath( os.path.dirname(__file__) )
PROJECT_ROOT = os.path.realpath(
os.path.dirname(HEREPATH)
)
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
"""
# Simple Website Settings
There a few settings that require the config/settings.cfg file to contain
data.
@airtonix
airtonix / gist:1603781
Created January 12, 2012 23:25
Dyanmic Template Choices
import os
import re
from django.template.loader import get_template
from django.template.loaders.app_directories import app_template_dirs
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
from cms.models import Placeholder, Page
@airtonix
airtonix / maintenance-mode.html
Created February 22, 2012 10:19
django-maintenance-mode
{% block page-messages %}
{% if settings.MAINTENANCE_MODE %}
Maintennance Mode is enabled. The site is not viewable by everyone
{% endif %}
{% for message in messages %}
&times; <#>{{ Message }}
{% endfor %}
{% endblock page-messages %}