This file contains 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/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シグナルで停止 |
This file contains 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
#!/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' |
This file contains 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/bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
trap 'echo "Ctrl-C captured and exit."; exit 1' INT | |
outdir=$1 | |
if [ "$outdir" == "" ]; then |
This file contains 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/bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
trap 'echo "Ctrl-C captured and exit."; exit 1' INT | |
trap 'echo "some error occured at $(pwd) and exit."; exit 8' SIGHUP | |
mkdir -p outdir || exit 1 |
This file contains 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/bash | |
set -o errexit | |
set -o pipefail | |
set -o nounset | |
trap 'echo "Ctrl-C captured and exit."; exit 1' INT | |
find . -type d \( -not -path '.' -not -path '*outdir' \) -print0 | \ | |
while read -d $'\0' line; do |
This file contains 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
lang en_US |
This file contains 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
{ | |
"filters": {}, | |
"rules": { | |
"@textlint-ja/no-insert-dropping-sa": true, | |
"ja-hiragana-fukushi": true, | |
"ja-hiragana-hojodoushi": false, | |
"ja-hiragana-keishikimeishi": true, | |
"max-appearence-count-of-words": true, | |
"no-surrogate-pair": true, | |
"prefer-tari-tari": true, |
This file contains 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/bash | |
logifle=~/tmp/ng_test_`date +'%Y%m%d-%H%M%S'`.log | |
if [ `node -v` == "v8.9.4" ]; then | |
ng test --single-run --code-coverage 2>&1 | tee "$logifle" | |
else | |
ng test --watch=false --code-coverage 2>&1 | tee "$logifle" | |
fi | |
open coverage/index.html |
OlderNewer