Skip to content

Instantly share code, notes, and snippets.

marvinpinto /
Created Jul 6, 2015
Python script to clean up and update the Jenkins AMIs after a successful Packer run
import requests
import os
import boto.ec2
import sys
import re
build_url = os.environ['BUILD_URL']
jenkins_base_url = os.environ['JENKINS_URL']
codification /
Last active Apr 29, 2019
Graphite client in python
import time
import socket
def collect_metric(name, value, timestamp):
sock = socket.socket()
sock.connect( ("localhost", 2003) )
sock.send("%s %d %d\n" % (name, value, timestamp))
def now():
return int(time.time())
View growlnotificationswithmessagesforcampfireandfluid.user.js
// ==UserScript==
// @name Growl notifications with messages for Campfire and
// @namespace
// @description If your name is mentioned in a message, a growl notification shows what was said.
// @author Tim Harper
// @homepage
// @include **
// ==/UserScript==
// Changes: