$ cd "your project path"
$ cp pre-commit .git/hooks/
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
[mysqld] | |
# 強制起動 起動しなくなったら値を増やす (最大6) | |
innodb_force_recovery = 0 | |
# DB復元のときに Lost Connectionしてしまうときはこれ | |
wait_timeout = 86400 | |
key_buffer = 16M | |
max_allowed_packet = 16M | |
thread_stack = 192K | |
thread_cache_size = 8 |
$ sudo cat /dev/null | sudo tee file.log
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
[ | |
"NEW GAME!", | |
"監獄学園", | |
"この素晴らしい世界に祝福を", | |
"ポプテピピック", | |
"東京喰種", | |
"メイドインアビス", | |
"デビルズライン", | |
"ダンジョン飯", | |
"妹さえいればいい。", |
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/sh | |
set -eu | |
# Exit early if no sessions with my username are found | |
if ! who | grep -wq $USER; then | |
exit | |
fi |
$ docker rm -f $(docker ps -aq) && docker rmi $(docker images -q)