Skip to content

Instantly share code, notes, and snippets.

Avatar

HOJIN LEE w4-hojin

View GitHub Profile
View Gerrit_Helper.user.js
// ==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 Apr 13, 2017
Time format for elasticsearch and kibana
View gist:7e1de1ddb4e13254c63ea4e1d99edb04
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"
View Youtrack_Helper.user.js
// ==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
View clean_branches.py
#!/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):
You can’t perform that action at this time.