This file contains 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
#! /usr/bin/python | |
""" | |
Simple script to slurp bugs from a Launchpad project into Pivotal Tracker | |
stories. | |
Also useful as an example of using launchpadlib and pytracker. | |
""" | |
import sys |
This file contains 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
#!/usr/bin/env python | |
import os | |
import sys | |
from django.core.management import execute_manager | |
PRODUCTION = 'production' | |
DEVELOPMENT = 'development' | |
ENVIRONMENTS = [ |
This file contains 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.forms import EmailField | |
from django.utils.translation import ugettext_lazy as _ | |
from django.contrib.auth.models import User | |
from django.contrib.auth.forms import UserCreationForm | |
class UserCreationForm(UserCreationForm): | |
email = EmailField(label=_("Email address"), required=True, |
This file contains 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
Show hidden characters
// Settings in here override those in "Default/Preferences.sublime-settings", and | |
// are overridden in turn by file type specific settings. | |
{ | |
"font_face": "Ubuntu Mono", | |
"font_size": 10, | |
"rulers": [80], | |
"translate_tabs_to_spaces": true, | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"draw_minimap_border": true, | |
"highlight_line": true, |
This file contains 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
HUBOT_IRC_NICK=hubot_test | |
HUBOT_IRC_PASSWORD=[redacted] | |
HUBOT_IRC_PORT=[redacted] | |
HUBOT_IRC_ROOMS=[redacted] | |
HUBOT_IRC_SERVER=[redacted] | |
HUBOT_IRC_SERVER_FAKE_SSL=yes | |
HUBOT_IRC_USESSL=yes | |
HUBOT_JENKINS_AUTH=[redacted] | |
HUBOT_JENKINS_URL=[redacted] | |
HUBOT_PORT=6697 |
This file contains 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.contrib.flatpages.models import FlatPage | |
class FlatPageMixin(object): | |
""" | |
Retrieves the FlatPage object for the specified url, and includes it in the | |
context. | |
If no url is specified, request.path is used. | |
""" |
This file contains 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
[plexmediaserver] | |
title=Plex Media Server | |
description=The Plex Media Server is smart software that makes playing Movies, TV Shows and other media on your computer simple | |
ports=32400/tcp|1900/udp|32469/udp|5353/udp |
This file contains 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
#!/bin/sh | |
APP_NAME=foo | |
mkdir -p /srv/$APP_NAME | |
GIT_WORK_TREE=/srv/$APP_NAMEs GIT_DIR=/var/lib/git/repositories/$APP_NAME.git git reset --hard | |
sudo /bin/chown -R $APP_NAME:$APP_NAME /srv/$APP_NAME | |
sudo /bin/chmod -R g+w /srv/$APP_NAME | |
sudo /sbin/status $APP_NAME | grep "^$APP_NAME start" > /dev/null 2>&1 |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
$script = <<SCRIPT | |
INITIAL_PROVISION=/var/cache/initial_provision | |
DISTRIB_CODENAME=$(lsb_release --codename --short) | |
DEB="puppetlabs-release-${DISTRIB_CODENAME}.deb" |
This file contains 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
#! /usr/bin/env python | |
import csv | |
import sys | |
with open(sys.argv[1], 'rb') as csvfile: | |
reader = csv.reader(csvfile, delimiter=',', quotechar='"') | |
header = reader.next() | |
columns = [] | |
for row in reader: | |
for i, v in enumerate(row): | |
_length = len(v) |
OlderNewer