Skip to content

Instantly share code, notes, and snippets.

View pipwilson's full-sized avatar
💯

Phil Wilson pipwilson

💯
View GitHub Profile
@pipwilson
pipwilson / post-commit-jira.sh
Last active June 5, 2017 12:43 — forked from skuro/post-commit-jira.sh
A post-commit svn hook to add comments to Jira
#!/bin/sh
# SVN post-commit hook to link revisions to JIRA tickets
#
# Author: Carlo Sciolla <carlo@backbase.com>
# Author: Phil Wilson
# Revision: 0.2
# fill in your Jira credentials and URL:
USER=foo
require "rubygems"
require "superfeedr"
## You can have all the XMPP logging by changing the Babylon log level
Babylon.logger.level = Log4r::DEBUG
##
# Don't ever forget that all this is ASYNCHRONOUS...
# If you don't run EM in your program, then it will started for... however, EM.run begin a blocking call, you shoudl probably run it into a specific Thread to keep the rest of your app running :)
@pipwilson
pipwilson / wotlisten.rb
Created March 6, 2009 13:00 — forked from infovore/wotlisten.rb
a port of wotlisten to use the RSS feed rather than screen-scrape
#!/usr/bin/env ruby -KU
# ported to use the RSS feed rather than screen-scrape
require 'rubygems'
require 'open-uri'
require 'rexml/document'
require 'rexml/xpath'
if ARGV[0]