Skip to content

Instantly share code, notes, and snippets.

View pipwilson's full-sized avatar
💯

Phil Wilson pipwilson

💯
View GitHub Profile
@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]
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 :)
Accelerando
A novel by Charles Stross
Copyright © Charles Stross, 2005
http://www.antipope.org/charlie/blog-static/buy-my-books/buy-my-books-uk.html
Published by
@pipwilson
pipwilson / ted_scrape.py
Created April 24, 2012 20:17
TED scraping info
# from https://github.com/plexinc-plugins/TED-Talks.bundle/blob/master/Contents/Code/__init__.py
import re, datetime
from string import ascii_uppercase
###################################################################################################
PLUGIN_TITLE = "TED Talks"
TED_BASE = "http://www.ted.com"
TED_TALKS_FILTER = "http://www.ted.com/talks/browse.json?tagid=%s&orderedby=%s"
@pipwilson
pipwilson / options
Last active December 15, 2015 08:39
My get_iplayer config
fatfilename 1
whitespace 1
nopurge = 1
subdirformat <name>
radiomode best
tvmode best
output /mnt/iplayer
nopurge = 1
fileprefix <episode>
aactomp3 1
@pipwilson
pipwilson / jira-versions-to-ical.php
Created June 16, 2013 21:44
convert the list of versions from JIRA into an iCalendar file you can add in Google Calendar
<?php
$versions_url = 'http://HOSTNAME.atlassian.net/rest/api/2/project/KEY/versions?os_username=USERNAME&os_password=PASSWORD';
$versions_file = file_get_contents($versions_url);
$versions = json_decode($versions_file);
start_calendar();
foreach ($versions as $version) {
make_event($version);
@pipwilson
pipwilson / settings.json
Last active March 7, 2018 19:55
VS Code user settings
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Solarized Dark",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/.settings": true,
@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
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+pageup",
"command": "-workbench.action.previousEditor"
},