Skip to content

Instantly share code, notes, and snippets.

Avatar

jeremy avnet brainsik

View GitHub Profile
@marvinpinto
marvinpinto / cleanup-ami.py
Created Jul 6, 2015
Python script to clean up and update the Jenkins AMIs after a successful Packer run
View cleanup-ami.py
#!/usr/bin/python
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
codification / graphite-client.py
Last active Apr 29, 2019
Graphite client in python
View graphite-client.py
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))
sock.close()
def now():
return int(time.time())
View growlnotificationswithmessagesforcampfireandfluid.user.js
// ==UserScript==
// @name Growl notifications with messages for Campfire and Fluid.app
// @namespace https://gist.github.com/882569
// @description If your name is mentioned in a message, a growl notification shows what was said.
// @author Tim Harper
// @homepage http://userscripts.org/scripts/show/22891
// @include *.campfirenow.com/room*
// ==/UserScript==
// Changes:
You can’t perform that action at this time.