This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import time | |
| from time import sleep | |
| import Adafruit_Nokia_LCD as LCD | |
| import Adafruit_GPIO.SPI as SPI | |
| import Adafruit_BBIO.GPIO as GPIO | |
| import Image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import scraperwiki | |
| import requests | |
| import lxml.html | |
| import sys | |
| from datetime import datetime | |
| base_url='http://www.environment-agency.gov.uk' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # Script to upload the human calendar to an lcdstatus screen | |
| # Requires the python lcdstatus screen library at: | |
| # https://github.com/dangardner/pylcdsysinfo | |
| # Written by John Cooper 2013 | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- /usr/sbin/nfsiostat 2012-04-09 13:21:11.000000000 +0100 | |
| +++ nfsiostat.collectd 2013-01-16 16:23:24.020173069 +0000 | |
| @@ -22,6 +22,8 @@ | |
| """ | |
| import sys, os, time | |
| +import socket | |
| +from datetime import datetime | |
| from optparse import OptionParser, OptionGroup | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- /usr/sbin/nfsiostat 2012-04-09 13:21:11.000000000 +0100 | |
| +++ nfsiostat 2013-01-03 16:28:11.564087330 +0000 | |
| @@ -22,6 +22,8 @@ | |
| """ | |
| import sys, os, time | |
| +import socket | |
| +from datetime import datetime | |
| from optparse import OptionParser, OptionGroup | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Takes some settings | |
| " g:puppet_command The location of the puppet command | |
| if !exists('g:puppet_command') | |
| let g:puppet_command = 'puppet' | |
| endif | |
| " g:puppet_doc_widown - The type of puppet doc window to open | |
| if !exists('g:puppet_doc_window') | |
| let g:puppet_doc_window = 'split' | |
| endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Footprints details | |
| // @namespace http://userscripts.org/users/58394 | |
| // @description Changes the details from | |
| // @include https://footprints.york.ac.uk/* | |
| // ==/UserScript== | |
| // | |
| // | |
| window.addEventListener("load", function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Calender date | |
| // @namespace http://choffee.co.uk/code/ | |
| // @include https://calendar.york.ac.uk/command.shtml?view=monthview:main* | |
| // ==/UserScript== | |
| // | |
| // This is neither pretty or clever but it does fix a really annoying bit in sun calendar | |
| // for me. It highlights the current day. | |
| // Note: It should also check that you are looking at the correct month! | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Note: This command was automatically generated by the create-new-search-command command. | |
| CmdUtils.makeSearchCommand({ | |
| name: "oed-search", | |
| url: "http://dictionary.oed.com/cgi/findword?query_type=word&queryword={QUERY}", | |
| icon: "http://dictionary.oed.com/favicon.ico", | |
| description: "Searches dictionary.oed.com" | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Note: This command was automatically generated by the create-new-search-command command. | |
| CmdUtils.makeSearchCommand({ | |
| name: "ubuntu-bug-search", | |
| url: "https://bugs.launchpad.net/+bugs?field.searchtext={QUERY}&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=", | |
| icon: "http://bugs.launchpad.net/favicon.ico", | |
| description: "Searches bugs.launchpad.net" | |
| }); |