This file contains hidden or 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
| export CONTAINER_ID=<container_name_or_id> | |
| truncate -s 0 $(docker inspect --format='{{.LogPath}}' ${CONTAINER_ID}) | |
| ## or | |
| echo "" > $(docker inspect --format='{{.LogPath}}' ${CONTAINER_ID}) |
This file contains hidden or 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
| TARGET_DOMAIN='www.example.com' | |
| echo | openssl s_client -connect ${TARGET_DOMAIN}:443 2> /dev/null | openssl x509 -noout -enddate |
This file contains hidden or 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
| git checkout --orphan EMPTY-BRANCH | |
| git rm -rf . | |
| git commit --allow-empty -m "root commit" | |
| git push origin EMPTY-BRANCH |
This file contains hidden or 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
| cd /var/lib/rpm/ | |
| ## backup | |
| for i in `ls | grep 'db.'`;do mv $i $i.bak;done | |
| rpm --rebuilddb | |
| yum clean all |