Skip to content

Instantly share code, notes, and snippets.

View Tuinslak's full-sized avatar

Yeri Tiete Tuinslak

View GitHub Profile
# Simple script to send you email when someone unfollows you on twitter.
#
# Replace email on line 24 with the email you want to receive notifications at, and
# twitter handle on line 23 with your own (or whomever you want to track unfollows for).
#
# Set up a crontab to check however often you like. If someone follows and then unfollows you
# very quickly (within the interval), you won't get an email.
#
# Requires that you can send mail from the command line of the environment where
# you're running the script using mailx, e.g. `echo "body" | mailx -s "subject" foo@bar.com
@HansF
HansF / iRailphpwrapper.php
Created September 10, 2010 16:21
php wrapper for iRail api
<?php
//
// php wrapper for iRail, by Hans Fraiponts
// licence http://www.gnu.org/licenses/gpl-3.0.html
// More info here : http://project.irail.be/cgi-bin/trac.fcgi/wiki/ApiSpecification
//
function listStations (){
$xml = simplexml_load_file("http://api.irail.be/stations.php");
#
# New git repo located at https://github.com/iRail/BeTrains.Bash - please update bookmark
#