Skip to content

Instantly share code, notes, and snippets.

View fkei's full-sized avatar
😀

fkei fkei

😀
View GitHub Profile
@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
@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 / 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 / bash-multiline
Created February 4, 2014 02:42
Bash でヒアドキュメント
cat <<__EOF__
hoge
foo
__EOF__
@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 / example.require.config.js
Created October 27, 2013 15:49
configure: require.js + backbone.js + jquery + lodash.underscore
......
"paths": {
"jquery": "http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery",
"underscore": "http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.2.1/lodash.underscore",
"backbone" : "http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.0/backbone-min"
},
"shim": {
"backbone": {
"deps": ["underscore", "jquery"],

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@fkei
fkei / bash and make memo
Created September 3, 2013 07:38
bash and make memo #1
OSがLinuxかチェック
# --
[ "x`uname -s`" != "xLinux" ] && echo "For Linux OS.\t[ NG ]" && exit 1
rootユーザかチェック
# --
[ "x`whoami`" != "xroot" ] && echo "Only root can run." && exit 1
@fkei
fkei / example-gunicorn-log.conf
Created September 3, 2013 05:37
example gunicorn log config
[loggers]
keys=root,example.default,gunicorn.access,gunicorn.error
[logger_root]
level=DEBUG
handlers=example
[logger_example.default]
level=DEBUG
handlers=example
@fkei
fkei / example-gunicorn.py
Last active December 22, 2015 04:49
gunicorn sample config
import multiprocessing
# Turn on debugging in the server. [False]
debug=True
# Install a trace function that spews every line executed by the server. [False]
spew=False
# The Access log file to write to. [None]
#accesslog='/var/log/gunicorn.access.log'