Skip to content

Instantly share code, notes, and snippets.

@manhole
manhole / copy_and_paste.txt
Last active July 25, 2023 00:32
コピペ用
○ 丸
× 乗算記号
✗ バツマーク 機種依存文字
☓ 斜め十字 機種依存文字
× 乗算記号
✕ 乗算記号 機種依存文字
○ 丸
◯ 大きな丸
// TMPを消す
groovy -e " new AntBuilder().delete(failonerror:false, verbose:true, dir:System.properties['java.io.tmpdir']) "
@manhole
manhole / git_count_changes.rb
Last active November 4, 2015 09:06
gitへ変更した行数をカウントするスクリプト
# gitへ変更した行数をカウントするスクリプト
#
# example:
# git log --since=2014-11-01 --committer=manhole --shortstat --ignore-all-space --no-merges | ruby git_count_changes.rb
# => commits=175, insertions=10350, deletions=1253
# 各行の形式は...
# 10 files changed, 210 insertions(+), 19 deletions(-)
# 1 file changed, 5 insertions(+)
# 1 file changed, 50 deletions(-)
@manhole
manhole / gittool.groovy
Last active August 29, 2015 14:06
直下のworking directory群でgit fetch ${remote}, git svn fetch ${svn-remote}するgroovyスクリプト。
/**
* usage: groovy gittool.groovy path/to/parent_directory
*
* @author manhole
*/
@Grapes([
@Grab(group = 'joda-time', module = 'joda-time', version = '2.3')
,@Grab(group = 'ch.qos.logback', module = 'logback-core', version = '1.1.2')
,@Grab(group = 'ch.qos.logback', module = 'logback-classic', version = '1.1.2')
])