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/sh | |
case "$1" in | |
start) | |
;; | |
stop) | |
;; | |
restart) | |
$0 stop | |
$0 start |
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
(function() { | |
var colors = { | |
"1": "#aea", // 신규 | |
"2": "#bfb", // 진행 | |
"3": "#ccc", // 해결 | |
"4": "#ff9", // 의견 | |
"5": "#aaa", // 완료 | |
"9": "#efa", // 보류 | |
"10": "#ff9" // 의견 | |
}; |
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 Onnuri nCare Attendance | |
// @namespace http://icare.ionnuri.org/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author gilchris | |
// @match http://*/* | |
// @grant none | |
// ==/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
(function() { | |
if (location.href.indexOf('/issues/') > -1) { | |
$("a[title^='20']").each(function() { $(this).text($(this).text() + " (" + $(this).attr('title') + ")"); }); | |
} | |
})(); |
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 Redmine My Issue Highlighter | |
// @namespace https://gist.github.com/gilchris/71bb6c44625722e0ae0d31ea0378e788 | |
// @include /^.*redmine.*$/i | |
// ==/UserScript== | |
(function() { | |
var activeUserLink = $("div[id='loggedas'] > a").attr('href'); | |
$("a[href='" + activeUserLink + "']").each(function() { $(this).html("<b style='color:#000000'>" + $(this).html() + "</b>"); }); | |
})(); |
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
import android.util.Log; | |
public class StopWatch { | |
private static String TAG = "StopWatch"; | |
private static long baseTime; | |
private static long lastCheckTime; | |
private static long nowTime; |
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
@ECHO OFF | |
set PYTHONDONTWRITEBYTECODE=1 | |
set PYTHONPATH=..\src | |
C:\Python35\Scripts\pytest.exe %* |
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
Start-Process -FilePath C:\Windows\notepad.exe -ArgumentList "C:\Windows\System32\drivers\etc\hosts" -Verb runAs |
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
// https://stackoverflow.com/a/35430091/1615988 | |
function getQuery(q) { | |
return (window.location.href.match(new RegExp('[?&]' + q + '=([^&]+)')) || [, null])[1]; | |
} |
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
rm -f $(find . 'nohup.out' | grep nohup.out) |
OlderNewer