Skip to content

Instantly share code, notes, and snippets.

Avatar

Mathieu Arnold mat813

View GitHub Profile
@burke
burke / 0-readme.md
Created Jan 27, 2012 — forked from funny-falcon/cumulative_performance.patch
ruby-1.9.3-p327 cumulative performance patch for rbenv
View 0-readme.md

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

@mat813
mat813 / rescan-itunes.scpt
Created May 27, 2011
rescan iTunes library…
View rescan-itunes.scpt
tell application "System Events"
repeat
delay 0.05
try
click UI element "Suivant" of window 1 of application process "iTunes"
end try
end repeat
end tell
@koma5
koma5 / prowl.sh
Created Apr 9, 2011
send prowl push notifications to your iOS device; requires curl -> for debian based distros # apt-get update && apt-get install curl -y
View prowl.sh
#! /bin/sh
# Usage: ./prowl.sh priority(-2 to 2) app event description
# Example: ./prowl.sh 0 "transmission" "torrent has finished" "Coen Brothers Compilation has finised downloading"
priority=$1
app=$2
event=$3
description=$4
apikey=fill_in_your_API_key_here
if [ $# -ne 4 ]; then