Skip to content

Instantly share code, notes, and snippets.

@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.
@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 / 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 / sns.coffee
Last active December 11, 2015 07:48
AWS SNS script for hubot
# Description:
# This script receives messages from AWS SNS topic for cloudwatch
#
# Author:
# jasonthomas
irc = require('irc')
SNSClient = require('aws-snsclient')
module.exports = (robot) ->
@jasonthomas
jasonthomas / gist:5214719
Created March 21, 2013 17:08
s3 reposync
#!/bin/env python
import boto
import hashlib
import os
BUCKET_NAME = 'reponame'
AWS_ACCESS_KEY_ID = ''
AWS_SECRET_ACCESS_KEY = ''
@jasonthomas
jasonthomas / circusd.sh
Created June 14, 2013 22:16
circusd init script
#!/bin/bash
#
# circusd This scripts turns circusd on
#
# Author: Jason Thomas <jthomas@mozilla.com>
#
# chkconfig: - 95 04
#
# description: circus is a program that will let you run and watch
# multiple processes and sockets.
[root@mktadm1 0]# ls -ltrh
total 1.3M
-rw-r--r-- 1 mkt_prod mkt_prod 46K Sep 2 17:52 feed_shelf_39.png
-rw-r--r-- 1 mkt_prod mkt_prod 54K Sep 11 20:18 feed_shelf_37.png
-rw-r--r-- 1 mkt_prod mkt_prod 43K Sep 23 16:17 feed_shelf_9.png
-rw-r--r-- 1 mkt_prod mkt_prod 43K Sep 23 16:25 feed_shelf_17.png
-rw-r--r-- 1 mkt_prod mkt_prod 43K Sep 23 16:27 feed_shelf_7.png
-rw-r--r-- 1 mkt_prod mkt_prod 43K Sep 23 16:37 feed_shelf_11.png
-rw-r--r-- 1 mkt_prod mkt_prod 43K Sep 23 17:14 feed_shelf_13.png
-rw-r--r-- 1 mkt_prod mkt_prod 43K Sep 23 17:21 feed_shelf_5.png
### Keybase proof
I hereby claim:
* I am jasonthomas on github.
* I am lithiumfox (https://keybase.io/lithiumfox) on keybase.
* I have a public key whose fingerprint is B7E6 AA2A 6795 0001 BF6E 14E2 C757 8A53 9561 2E47
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am jasonthomas on github.
  • I am lithiumfox (https://keybase.io/lithiumfox) on keybase.
  • I have a public key whose fingerprint is B7E6 AA2A 6795 0001 BF6E 14E2 C757 8A53 9561 2E47

To claim this, I am signing this object:

[root@log1 log]# grep mozilla-extensions@kewis.ch maillog
Sep 28 07:27:27 log1 postfix/smtp[25864]: 0C8062400E5: to=<mozilla-extensions@kewis.ch>, relay=smtp.socketlabs.com[142.0.179.10]:25, delay=0.68, delays=0.01/0/0.49/0.18, dsn=2.0.0, status=sent (250 2.0.0 Message received and queued as 710000034067f1.)
Sep 28 18:26:44 log1 postfix/smtp[25568]: 3FC9D240444: to=<mozilla-extensions@kewis.ch>, relay=smtp.socketlabs.com[23.23.219.154]:25, delay=0.7, delays=0.01/0.01/0.52/0.16, dsn=2.0.0, status=sent (250 2.0.0 Message received and queued as d4000000d2d7f3.)
Oct 2 21:17:34 log1 postfix/smtp[16837]: 1CE9C2404FC: to=<mozilla-extensions@kewis.ch>, relay=smtp.socketlabs.com[142.0.179.10]:25, delay=0.69, delays=0.01/0/0.51/0.17, dsn=2.0.0, status=sent (250 2.0.0 Message received and queued as 7200000381e480.)
Oct 2 21:42:36 log1 postfix/smtp[18065]: 081232404FC: to=<mozilla-extensions@kewis.ch>, relay=smtp.socketlabs.com[142.0.180.14]:25, delay=0.73, delays=0.01/0/0.39/0.33, dsn=2.0.0, status=sent (250 2.0.0 Mes