This file contains 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/local/bin/powershell -File | |
<# | |
.EXAMPLE | |
~/scripts/Get-MyCommits.ps1 | pbcopy | |
Commits since 4 am today copied to Mac OS clipboard | |
.EXAMPLE | |
~/scripts/Get-MyCommits.ps1 "5/1" "6/1" "Commits in May" -ShowDates |
This file contains 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 node | |
/* -*- js2 -*- */ | |
var util = require('util'); | |
/* ************************************************************* */ | |
// Set up classes to support Range objects. Ported from | |
// Nagios::Plugin::Range. See named functions below. | |
// TODO: Modularize properly/idiomatically. |
This file contains 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/local/bin/casperjs | |
/* js2 */ | |
var casper = require('casper').create({ | |
// iphone5 fullscreen portrait: 1136-by-640 | |
viewportSize: { | |
width: 640, | |
height: 1136 | |
} | |
}); |
This file contains 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 node | |
/* -*- js2 -*- */ | |
/* ************************************************************* */ | |
// Set up classes to support Range objects. Ported from | |
// Nagios::Plugin::Range. See named functions below. | |
// TODO: Modularize properly/idiomatically. | |
/* | |
* Represents a Nagios plugin range object. |
This file contains 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/perl | |
### check_backup.pl | |
# By Nathan Vonnahme, Sept 2011 | |
# An example for "Writing Custom Nagios Plugins in Perl" at the Nagios | |
# World Conference North America 2011. | |
# I. Prologue |
This file contains 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/local/bin/perl | |
### check_tap.pl | |
# By Nathan Vonnahme, n8v at users dot sourceforge dot net, June 2 2011 | |
# Allows Nagios to check the output of anything that emits Test Anything | |
# Protocol. | |
# See http://en.wikipedia.org/wiki/Test_Anything_Protocol |