Skip to content

Instantly share code, notes, and snippets.

@jasonthomas
jasonthomas / gist:4355909
Created December 21, 2012 21:19
autosign.conf
#!/bin/env python
## populate /etc/puppet/autosign.conf based on tags
from boto.ec2 import connect_to_region, regions
region = 'us-west-2'
autosign = '/etc/puppet/autosign.conf'
filters = {'tag:Project': 'amo'}
conn = connect_to_region(region)
@jasonthomas
jasonthomas / es_mgmt.py
Created November 8, 2012 01:02
elasticsearch backup script
#!/bin/env python
import tarfile
import urllib2
import json
import os
import sys
import datetime
from optparse import OptionParser
ES_HTTP = 'http://localhost:9200'
@jasonthomas
jasonthomas / python27.spec
Created September 24, 2012 17:23 — forked from oremj/python27.spec
A simple RHEL 6 python2.7 spec file
%define binsuffix 27
%define pybasever 2.7
%define version 2.7.3
%define name python
%define release 1pydotorg
Name: %{name}%{binsuffix}
Version: %{version}
Release: %{release}
Summary: An interpreted, interactive, object-oriented programming language.