$ docker rm -f $(docker ps -aq) && docker rmi $(docker images -q)
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 |
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