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
series: vivid | |
services: | |
keystone: | |
charm: keystone | |
branch: lp:~openstack-charmers/charms/trusty/keystone/trunk | |
num_units: 1 | |
options: | |
admin-password: openstack | |
ha-mcastport: 5403 | |
openstack-origin: distro |
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
#!/bin/bash | |
# Did a program get specified? | |
if test $# -lt 1; then | |
echo "You must specify a program to run with x."; | |
exit; | |
fi | |
# Did a tty get specified? | |
if test $# -lt 2; then |
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
-- based on John Gruber's original Safari Source in BBEdit script | |
-- http://daringfireball.net/2003/01/safari_source_in_bbedit | |
-- and duct tape | |
tell application "Safari" to set theSource to do JavaScript "window.document.documentElement.outerHTML" in document 1 | |
tell application "MacVim" | |
activate | |
make new text window with properties ¬ | |
{contents:theSource, source language:"HTML"} |
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
#!/bin/bash | |
# find-mods | |
# j.c.sackett | |
# This is a (ridiculously) simple script to show you a smaller subset of | |
# svn st--specifically, it shows only the Added, Deleted, or Modified | |
# files in your codebase, ignoring externals. | |
svn st --ignore-externals | grep '[AMD] ' |
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
#!/bin/bash | |
# if the file doesn't already exist, create it so we can start a new | |
# file by calling scribes on it. | |
if [ ! -e $1 ] | |
then | |
touch $1 | |
fi | |
# now open the file in a totally separated scribes process |
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
#!/bin/bash | |
cd ~/.source | |
sudo pip $1 $2 |
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
#!/usr/bin/perl -w | |
use strict; | |
use HTML::TagCloud; | |
use HTML::Entities; | |
# Dirt-simple web server - displays the tag cloud, and the set of all | |
# notes that match a given tag, if provided. Also accepts requests to | |
# search the notes, showing highlighted results. |
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.contrib import admin | |
from django.contrib.auth.models import User | |
from django.contrib.auth.admin import UserAdmin | |
from django.contrib.auth.forms import UserChangeForm | |
from django import forms | |
class EmailUserChangeForm(UserChangeForm): | |
username = forms.EmailField(label='Username') | |
class EmailUserAdmin(UserAdmin): |