Skip to content

Instantly share code, notes, and snippets.

View w4-hojin's full-sized avatar

HOJIN LEE w4-hojin

View GitHub Profile
// ==UserScript==
// @name Gerrit_Helper
// @namespace https://skelterlabs.com/
// @homepage https://gist.github.com/w4-hojin/7b46d33472a65cfe3510059ab25bf1da
// @version 0.22
// @description Gerrit Helper.
// @author hojin <hojin@wisefour.com>
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @require https://cdn.jsdelivr.net/ally.js/1.4.1/ally.min.js
// @require https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js
@w4-hojin
w4-hojin / gist:7e1de1ddb4e13254c63ea4e1d99edb04
Last active April 13, 2017 05:15
Time format for elasticsearch and kibana
http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateOptionalTimeParser--
dateFormat for kibana: YYYY-MM-DDTHH:mm:ssZ
Ex: 2017-04-13T12:01:44+09:00
string_query: @timestamp:"2017-04-13T12:01:44+09:00"
@w4-hojin
w4-hojin / Youtrack_Helper.user.js
Last active May 18, 2018 03:25
Youtrack Helper
// ==UserScript==
// @name Youtrack Helper
// @namespace https://kyte.today/
// @version 1.3.8
// @description Make useful links in youtrack.
// @author Hojin Lee <hojin@wisefour.com>
// @require https://code.jquery.com/jquery-1.12.4.min.js
// @require https://raw.githubusercontent.com/hazzik/livequery/master/dist/jquery.livequery.min.js
// @match https://youtrack.gabepos.com/*
// @grant none
#!/usr/local/bin/python3
import argparse
import os
import os.path as osp
from git import Repo
from git.exc import GitCommandError
class ReadableDir(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):