Skip to content

Instantly share code, notes, and snippets.

View mattsmallman's full-sized avatar

Matt Smallman mattsmallman

  • SymNex Consulting - @symnexco
  • London, UK
View GitHub Profile
<html>
<head>
<!--
Shows total of funds raised, on and offline including gift aid (UK Tax refund) from justgiving.com on Panic Status Board: http://panic.com/statusboard/
Instructions:
1. Register for an API key and access at: https://api.justgiving.com/docs
2. Replace: https://api.justgiving.com/your-api-key/v1/fundraising/pages/your-page-name with the appropriate api-key and your-page-name
3. Place the page on an accessible web server
<?php
//add your server aliases here
$servers = array(
"185.14.184.234" => "mcfly.bensmann.no",
"185.14.184.xxx" => "another.server.com",
);
//change this line to compensate for servers updating less frequenct (65 chosen for servers running curl every 1 min)
$timeinsecondstoalert = 65