$ cat .git/hooks/pre-commit#!/bin/bash
#
# This command prevent commit if total file size exceeds error is occured.
#| __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 |
| #!/bin/bash | |
| # | |
| grunt jshint | |
| [ $? -ne 0 ] && echo "grunt jshint error" && exit 1 | |
| exit 0 |
$ cat .git/hooks/pre-commit#!/bin/bash
#
# This command prevent commit if total file size exceeds error is occured.
#| cat <<__EOF__ | |
| hoge | |
| foo | |
| __EOF__ |
| #!/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}` |
| ...... | |
| "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"], |
| 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 | |
| [loggers] | |
| keys=root,example.default,gunicorn.access,gunicorn.error | |
| [logger_root] | |
| level=DEBUG | |
| handlers=example | |
| [logger_example.default] | |
| level=DEBUG | |
| handlers=example |
| 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' |