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
var getCurrentAestDate = function ( ) { | |
var d = new Date(), | |
timezone = 10, | |
utc = d.getTime() - ( d.getTimezoneOffset() * 60000 ), | |
// Current +10 (AEST) time | |
aest = new Date( utc + (3600000 * -timezone) ), | |
// Current +11 (ADST) time | |
adst = new Date( utc + (3600000 * -(timezone+1)) ), | |
// Set to start of the month DST starts (October) | |
// and time of rollover (0200) |
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
#!/bin/bash | |
# | |
# WAR to DEB | |
# This script takes a WAR file, and packages it into a DEB file targetting tomcat's default webapps directory, | |
# /var/lib/tomcatX/webapps | |
# Arguments: | |
# -h Help text | |
# -s Tomcat version (default: 7) | |
# -p Custom output path | |
# -f Input WAR file |
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
// ==UserScript== | |
// @name AWS UI scrubber | |
// @namespace https://github.com/jamesinc | |
// @version 1.5 | |
// @description Make AWS Console shortcuts take up less space | |
// @author James Ducker | |
// @match https://*.console.aws.amazon.com/* | |
// @match https://phd.aws.amazon.com/* | |
// @grant none | |
// @run-at document-end |
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
// ==UserScript== | |
// @name AWS console notification dismisserator 9000 | |
// @namespace https://github.com/jamesinc | |
// @version 1.1 | |
// @description Dismiss AWS flash notifications after about 5 seconds | |
// @author James Ducker | |
// @match https://*.console.aws.amazon.com/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |