docker exec -it registry_registry_1 registry garbage-collect /etc/docker/registry/config.yml
docker-compose restart
Ctrl + U Ctrl + A / Ctrl + E
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
# 绿色框去除水印位置(通过周围像素插值) | |
ffplay -i source.mp4 -vf delogo=x=72:y=32:w=168:h=86:show=1 | |
# 确定后执行去除 | |
ffmpeg -i source.mp4 -vf delogo=x=72:y=32:w=168:h=86 output.mp4 |
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
# https://github.com/google/guetzli | |
guetzli --quality 84 input_filename output_filename |
> find / -name FILE_NAME
> ps -ef | grep tomcat | awk '{print "kill -9 " $2}' | sh
> ln -s full-path-to-mysql-os /usr/local/mysql
> unlink /usr/local/mysql
> curl -XGET --header 'Content-Type: application/json'
> curl -XGET -H 'Content-Type: application/json'
# 打印目录树中文
> tree -N
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
# war | |
deps:git/maven | |
java -jar jenkins.war |
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
# python | |
def beauty_face(img): | |
''' | |
Dest =(Src * (100 - Opacity) + (Src + 2 * GuassBlur(EPFFilter(Src) - Src + 128) - 256) * Opacity) /100 ; | |
https://my.oschina.net/wujux/blog/1563461 | |
''' | |
dst = np.zeros_like(img) | |
#int value1 = 3, value2 = 1; 磨皮程度与细节程度的确定 | |
v1 = 3 |