Skip to content

Instantly share code, notes, and snippets.

View zhangdxchn's full-sized avatar

zhangdxchn

View GitHub Profile
@zhangdxchn
zhangdxchn / 美肤磨皮算法
Last active November 30, 2019 07:48
Python
# 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
@zhangdxchn
zhangdxchn / Jenkins install
Last active August 4, 2020 18:24
Install
# war
deps:git/maven
java -jar jenkins.war
@zhangdxchn
zhangdxchn / Linux shell command.md
Last active February 10, 2020 06:05
Linux Shell +
> 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
# https://github.com/google/guetzli
guetzli --quality 84 input_filename output_filename
@zhangdxchn
zhangdxchn / ffmpeg.sh
Created December 7, 2019 05:00
FFmpeg 去除水印
# 绿色框去除水印位置(通过周围像素插值)
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
@zhangdxchn
zhangdxchn / Command_line_shortcuts.md
Created December 8, 2019 07:18
linux 命令行快捷键

Ctrl + U Ctrl + A / Ctrl + E

docker exec -it registry_registry_1 registry garbage-collect /etc/docker/registry/config.yml
docker-compose restart