Skip to content

Instantly share code, notes, and snippets.

View ghuntley's full-sized avatar
minimalist

Geoffrey Huntley ghuntley

minimalist
View GitHub Profile
@JakeWharton
JakeWharton / hookpuller.py
Created November 7, 2009 00:57
Takes a GitHub service hook POST and automatically updates the associated repo.
#!/usr/bin/env python
'''
Takes a GitHub service hook POST and automatically updates the associated repo.
'''
__license__ = '''
Copyright 2009 Jake Wharton
hookpuller is free software: you can redistribute it and/or modify
#!/usr/bin/env ruby
require 'ftools'
require 'fileutils'
require 'rubygems'
require 'RMagick'
include Magick
require 'open3'
def merge( files = [] )
<!DOCTYPE html>
<html>
<head>
<title>iPad To-do</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://krosswordr.ru/site_media/invisibleframework.min.css" type="text/css" media="screen" />
<link rel="stylesheet" href="http://krosswordr.ru/site_media/i/jqtouch/jqtouch.min.css" type="text/css" />
<link rel="stylesheet" href="http://krosswordr.ru/site_media/i/themes/apple/theme.min.css" type="text/css" />
</head>
<body>
@worksology
worksology / get_artwork.py
Created March 22, 2011 19:55
A quick command line script to get full movie cover art from iTunes. Just run the script using: python get_artwork.py and then follow the prompts.
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
import urllib, urllib2
import json
MOVIES = {
'title_prompt': "Search for a movie title (or type 'tv' to switch to TV Shows): ",
'search_url': "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsSearch?entity=movie&term=",
@stefanfoulis
stefanfoulis / osx_developer_installation.rst
Last active November 12, 2024 22:34
Instructions on how to setup an OSX developer machine for (python/django) development

OSX Developer System installation

This guide assumes a fresh install of Mac OSX 10.7 Lion.

Brew User

@drichert
drichert / post-checkout
Created April 27, 2011 21:18
git post-checkout hook for compressing javascript (via uglifyjs)
#!/bin/bash
branch=$(git symbolic-ref -q HEAD |sed 's/refs\/heads\///')
gitroot=$(git rev-parse --show-toplevel)
jsdir="js"
targetdir="$gitroot/$jsdir"
files=$(find $targetdir -maxdepth 1 -type f -name '*.js' ! \( -name '*.min.js' \))
echo -n "Uglifying javascript... "
for f in $files; do
@pklaus
pklaus / tunnelbroker-net.sh
Last active September 17, 2024 08:12
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <[email protected]>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x
@callumj
callumj / network_grabber.rb
Created June 1, 2011 15:03
Grab all CITS3230 pdfs
require 'nokogiri'
require 'open-uri'
root_path = "http://undergraduate.csse.uwa.edu.au/units/CITS3230"
Nokogiri::HTML(open("#{root_path}/schedule.html")).css('a').each { |link| File.open("#{Dir.home}/#{File.basename(link['href'])}", 'wb') {|f| f.write(open("#{root_path}/#{link['href']}").read()) } if link['href'] =~ /\b.+.pdf/ }
@kusor
kusor / server.js
Created July 18, 2011 17:18
Sample node-restify server
var assert = require('assert');
var fs = require('fs');
var path = require('path');
var nopt = require('nopt');
var restify = require('restify');
// Custom libraries
// var foo = require('./lib/foo');
///--- Globals