william

Keep Calm and Markdown.

github 使用秘钥

错误提示如下: 1 2 3 4 5 6 7 8 git push origin master Alias tip: gp origin master Username for 'https://github.com': williamlfang Password for 'https://williamlfang@github.com': remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: Authentication failed for 'https://github.com/williamlfang/blog.git/' 参考:How to fix the

vim 中文乱码

在 ~/.vimrc 添加 1 2 3 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=utf-8 set encoding=utf-8 另外,有可能出现 ^M 这样的表示符号,其实是 return 的显示,替换掉 1 :%s/\r//g

frp.service

1 2 3 4 5 6 7 8 9 10 11 12 13 14 [Unit] Description=frp network service After=network.target network-online.target [Service] Type=forking Restart=always RestartSec=5 ExecStart=/root/tools/frp_0.37.0_linux_amd64/start.sh ExecReload=/root/tools/frp_0.37.0_linux_amd64/start.sh ExecStop=/root/tools/frp_0.37.0_linux_amd64/start.sh [Install] WantedBy=multi-user.target 1 2 3 4 5 6 7 #!/usr/bin/env bash ## 1.kill ps aux |grep frpc |awk '{print $2}' |xargs kill -9 ## 2.start nohup /root/tools/frp_0.37.0_linux_amd64/frpc -c /root/tools/frp_0.37.0_linux_amd64/frpc.ini &
0%