Skip to content

Instantly share code, notes, and snippets.

View fkei's full-sized avatar
😀

fkei fkei

😀
View GitHub Profile
@fkei
fkei / git-feature-start
Created February 4, 2014 02:40
Git リポジトリディレクトリで、指定したブランチ名でブランチを作成し、合わせてリモートブランチも作成するコマンド
#!/bin/bash
#
# git-feature-start - Git リポジトリディレクトリで、指定したブランチ名でブランチを作成し、合わせてリモートブランチも作成するコマンド
#
pushd `dirname $0` >/dev/null 2>&1
[ $? -eq 1 ] && exit 1
__script_dir=`pwd`
popd >/dev/null 2>&1
__base_dir=`dirname ${__script_dir}`
@fkei
fkei / bash-multiline
Created February 4, 2014 02:42
Bash でヒアドキュメント
cat <<__EOF__
hoge
foo
__EOF__
@fkei
fkei / maxfilesize-pre-commit.md
Created February 26, 2014 04:33
git#pre-commit : This command prevent commit if total file size exceeds error is occured.
$ cat .git/hooks/pre-commit
#!/bin/bash
#
# This command prevent commit if total file size exceeds error is occured.
#
@fkei
fkei / gruntjshint-precommit
Created February 26, 2014 05:48
git#pre-commit : precommit grunt-jshint checker
#!/bin/bash
#
grunt jshint
[ $? -ne 0 ] && echo "grunt jshint error" && exit 1
exit 0
@fkei
fkei / Makefile
Last active November 8, 2017 02:07
ffmpeg/imagemagick compile script (include libx264/ffmpeg,ffprobe/convert only/arch=x86_64 only/not doc/static library)
__os=$(shell uname)
__wget=$(shell which wget)
__tar=$(shell which tar)
__make=$(shell which make)
__mkdir=$(shell which mkdir)
__cp=$(shell which cp)
__rm=$(shell which rm)
__prefix=$(shell pwd)/build
__include=$(__prefix)/include