Skip to content

Instantly share code, notes, and snippets.

View paddycarey's full-sized avatar

Patrick Carey paddycarey

View GitHub Profile

Keybase proof

I hereby claim:

  • I am paddycarey on github.
  • I am paddycarey (https://keybase.io/paddycarey) on keybase.
  • I have a public key whose fingerprint is 2914 C70D 663D 5BA7 D049 B084 100D 8DF4 18A7 FB13

To claim this, I am signing this object:

#!/bin/bash
set -e
cat << EOF | docker build -t psi -
FROM node:0.10
RUN npm install -g psi
ENTRYPOINT ["psi"]
EOF
# wee blank line between build and run output
@paddycarey
paddycarey / tmi.sh
Created November 19, 2014 14:21
tmi
#!/bin/bash
set -e
cat << EOF | docker build -t tmi -
FROM node:0.10
RUN npm install -g tmi
ENTRYPOINT ["tmi"]
EOF
# wee blank line between build and run output
#!/usr/bin/env python
"""Dumps all translink bus timetables to csv
"""
# marty mcfly imports
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
# stdlib imports
import os
>>> pip install pygooglechart
Downloading/unpacking pygooglechart
HTTP error 403 while getting http://pygooglechart.slowchop.com/files/download/pygooglechart-0.3.0.tar.gz (from https://pypi.python.org/simple/pygooglechart/)
Could not install requirement pygooglechart because of error HTTP Error 403: Forbidden
Could not install requirement pygooglechart because of HTTP error HTTP Error 403: Forbidden for URL http://pygooglechart.slowchop.com/files/download/pygooglechart-0.3.0.tar.gz (from https://pypi.python.org/simple/pygooglechart/)
Storing complete log in /home/paddy/.pip/pip.log
@paddycarey
paddycarey / appengine_check.py
Created June 26, 2013 14:01
Nagios Plugin to check appengine's current system status by scraping https://code.google.com/status/appengine/
#!/usr/bin/env python
# stdlib imports
import sys
# third-party imports
import requests
from bs4 import BeautifulSoup
@paddycarey
paddycarey / niaopendata.py
Created September 19, 2012 22:44
Simple python wrapper for Northern Ireland Assembly Open Data
"""
Copyright (c) 2012, Patrick Carey
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@paddycarey
paddycarey / headbandoverlays.js
Created May 28, 2012 16:12
Headband Overlays
var AvatarOverlays = Class.extend({
_overlays: [],
init: function() {
console.log('AvatarOverlays::init');
var key = utils.pid()+"_team";
bus.addEventListener('SharedDataChange.team_0_0', this._onTeamChange, this);