$ cd "your project path"
$ cp pre-checkout .git/hooks/
$ sudo cat /dev/null | sudo tee file.log
[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 |
$ docker rm -f $(docker ps -aq) && docker rmi $(docker images -q)
#!/bin/sh | |
set -eu | |
# Exit early if no sessions with my username are found | |
if ! who | grep -wq $USER; then | |
exit | |
fi |
<?php | |
$time_start = microtime(true); | |
// 計測したい処理 | |
$time = microtime(true) - $time_start; | |
echo "{$time} 秒"; |
<?php | |
$integer = 1 ; | |
$string = '1'; | |
echo gettype($integer); // integer | |
echo gettype($string); // string |