Skip to content

Instantly share code, notes, and snippets.

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
@jcsackett
jcsackett / xonly
Created November 18, 2010 02:14
x-only trick from One Thing Well (http://onethingwell.org/post/1432068153/x-only)
#!/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
@jcsackett
jcsackett / gist:647265
Created October 26, 2010 16:44 — forked from dpk/gist:646570
-- 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"}
#!/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] '
#!/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
#!/bin/bash
cd ~/.source
sudo pip $1 $2
#!/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.
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):