This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django import forms | |
from django.core.exceptions import ValidationError | |
from commis.api.cookbook.models import CookbookRecipe | |
from commis.api.node.models import Node | |
from commis.api.role.models import Role | |
class MultipleChoiceAnyField(forms.MultipleChoiceField): | |
"""A MultipleChoiceField with no validation.""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
import sublime | |
import sublime_plugin | |
import os | |
import subprocess | |
import threading | |
import time | |
def remove_longest_substring(s1, s2): | |
for i, (c1, c2) in enumerate(itertools.izip_longest(s1, s2)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
action :append do | |
execute "cat #{new_resource.line} >>#{new_resource.path}" do | |
not_if "grep '#{new_resource.line}' #{new_resource.file}" | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect | |
from django import forms | |
from django.contrib.auth.forms import UserChangeForm | |
from django.contrib.auth.models import User | |
from django.core.paginator import Paginator | |
from django.shortcuts import get_object_or_404 | |
from django.utils.datastructures import SortedDict | |
import nexus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPNG Raid Manager | |
// Questions, comments, bug reports or donations to: magnet0 | |
// | |
// Updated points values and current maintenance handled by magnet0 | |
// | |
// ==UserScript== | |
// @name SPNG - hobopolis manager | |
// @namespace http://userscripts.org/scripts/source/86676.user.js | |
// @description Version 2.41 - modifed from slyz version of Dr3v1's Raid Log Manager | |
// @include *kingdomofloathing.com/topmenu.php* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include_recipe "collectd" | |
class ChefCollectdPluginReportHandler < Chef::Handler | |
def report | |
Chef::Log.info('Running collectd hander') | |
node[:last_success_time] = Time.now.to_f | |
node[:error_count_since_success] = 0 | |
node.save | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
T-Mobile: | |
unlimited - personal = $100 | |
1500 - personal = $80 | |
1000 - personal = $90 | |
500 - personal = $80 | |
unlimited - family = $180 | |
3000 - family = $150 | |
1500 - family = $160 | |
750 - family = $140 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the entire preseed config file used on an example Lucid system. See the preseed | |
# documentation for more information on the options here. This will use US English by default. | |
# | |
# https://help.ubuntu.com/10.04/installation-guide/amd64/preseed-contents.html | |
# | |
# This preseed will automatically install Ubuntu 10.04 with default options. Understand what | |
# it is doing before you use it. | |
# | |
# Boot Options line: | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from django.conf import settings | |
from south.management.commands import test | |
class Command(test.Command): | |
help = test.Command.help.rstrip('.') + ' with special output for Bitten.' | |
def handle(self, *test_labels, **options): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: atari | |
# Recipe:: db_server | |
# | |
# Copyright 2010, Atari | |
# | |
# All rights reserved | |
# | |
include_recipe "postgresql::server" |