Skip to content

Instantly share code, notes, and snippets.

Shigeru Hagiwara hgwr

Block or report user

Report or block hgwr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hgwr
hgwr / weekly_git_stats.rb
Last active Jul 28, 2019
weekly_git_stats.rb
View weekly_git_stats.rb
#!/usr/bin/env ruby
#
# Usage:
# weekly_git_stats.rb
# weekly_git_stats.rb 2019-01-01 2019-07-31
#
# see also: cloc --vcs git
#
require 'date'
require 'open3'
@hgwr
hgwr / watch-file.sh
Created Jul 10, 2019
Watching files and directories bash script
View watch-file.sh
#!/bin/bash -eu
#
# import from https://qiita.com/sonodar/items/ddeeb98525ef4c03d48e
#
# Requirement: yum install -y inotify-tools
#
# Usage: ./watch-file.sh /home/ads_hagiwara/tmp/tmp '^.*\.csv$' echo
#
trap "exit 0" 3 # QUITシグナルで停止
You can’t perform that action at this time.