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 F Yo SourceTree | |
// @namespace https://gist.github.com/bentleyo/8278671 | |
// @version 0.1.2 | |
// @description Replace SourceTree clone link with a link for GitHub app | |
// @match https://bitbucket.org/* | |
// @copyright 2013+, Bentley O'Kane-Chase | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== |
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 Output local time on GitHub Commit History | |
// @namespace http://bentleyo.com/ | |
// @version 0.25 | |
// @description Displays the local time next to GitHub commits instead of using PST | |
// @match https://github.com/*/commits* | |
// @copyright 2012+, Bentley O'Kane-Chasr | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// ==/UserScript== | |
jQuery('.commit-meta .js-relative-date').each(function() { |
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 Timesheets Select2 | |
// @namespace https://gist.github.com/Bentleyo/5933119/raw/TimesheetsSelect2.js | |
// @version 0.1.8 (this one is dedicated to Scotty) | |
// @description Replace awful timesheets select with select2 interface | |
// @match https://www.timesheets.com.au/* | |
// @copyright 2012+, Bentley O'Kane-Chase | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js |
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
#!/bin/bash | |
# Usage: Resymlink /var/www to the specified directory | |
WWW=/var/www | |
TARGET_FILE=$1 | |
cd `dirname $TARGET_FILE` | |
TARGET_FILE=`basename $TARGET_FILE` | |
# Iterate down a (possible) chain of symlinks | |
while [ -L "$TARGET_FILE" ] |