golang 解决网络下载包出错的问题

需要使用的 Go 版本是 1.13 及以上 go env -w GO111MODULE=on go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct 设置不走 proxy 的私有仓库,多个用逗号相隔(可选) go env -w GOPRIVATE=*.corp.example.com

便携版 WinSCP 在命令行下同步文件夹

"D:\WinSCPPortable\App\WinSCP\WinSCP.exe" /ini="D:\WinSCPPortable\Data\settings\winscp.ini" /log="D:\WinSCPPortable\Data\settings\winscp.log" /command "open sftp://用户名@服务器地址:服务器SSH端口/ -hostkey=""ssh-rsa 2048 一堆密钥="" -privatekey=""

ubuntu 20.04 下 freeswitch 配合 fail2ban 防恶意访问

ubuntu 20.04 freeswitch 1.10.5 fail2ban 0.11.1 https://github.com/fail2ban/fail2ban 1,先要让恶意访问的警告内容写入freeswitch的日志 修改 /usr/local/freeswitch/conf/sip_profiles/internal.xml <param name="log-auth-failures" value="true"/> 修改 /usr/local/freeswitch/conf/autoload_configs/switch.conf.xml <param name="threaded-system-exec" value="true"/> 改好以后保存,然后重启 freeswitch 或者 reloadxml 2,安装fai

ffmpeg 使用 nvenc 编码的结论记录

结论 同码率下 速度比x264快很多,但是质量比不过,从字幕边缘可以看出来 涉及到 -vf “ass=1.ass” 做字幕内嵌,连编码速度的优势也没了 ffmpeg.exe -y -i "demo.mp4" -c:v h264_nvenc -preset llhq -bf 4 -b:v 400k -vf