Skip to content

Instantly share code, notes, and snippets.

Phil Wilson pipwilson

View GitHub Profile
View keybindings.json
// 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"
},
@pipwilson
pipwilson / post-commit-jira.sh
Last active Jun 5, 2017 — forked from skuro/post-commit-jira.sh
A post-commit svn hook to add comments to Jira
View post-commit-jira.sh
#!/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
@pipwilson
pipwilson / settings.json
Last active Mar 7, 2018
VS Code user settings
View settings.json
{
"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 / jira-versions-to-ical.php
Created Jun 16, 2013
convert the list of versions from JIRA into an iCalendar file you can add in Google Calendar
View jira-versions-to-ical.php
<?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 / options
Last active Dec 15, 2015
My get_iplayer config
View options
fatfilename 1
whitespace 1
nopurge = 1
subdirformat <name>
radiomode best
tvmode best
output /mnt/iplayer
nopurge = 1
fileprefix <episode>
aactomp3 1
@pipwilson
pipwilson / ted_scrape.py
Created Apr 24, 2012
TED scraping info
View ted_scrape.py
# 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"
View accelerando.txt
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
View example.rb
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 Mar 6, 2009 — forked from infovore/wotlisten.rb
a port of wotlisten to use the RSS feed rather than screen-scrape
View wotlisten.rb
#!/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]
You can’t perform that action at this time.