视频下载工具

youtube-dl http://rg3.github.io/youtube-dl/
you-get https://github.com/soimort/you-get

Shadowsocks

macOS: https://github.com/shadowsocks/shadowsocks-iOS/releases/ windows: https://github.com/shadowsocks/shadowsocks-windows/releases

macOS终端开启自动补全

~/.inputrc中添加

set completion-ignore-case on
set show-all-if-ambiguous on
TAB:menu-complete

macOS终端代理软件

brew install proxychains-ng

macOS终端命令别名设置

~/.bashrc添加

alias p3='/usr/local/bin/python3'
执行source ~/.bashrc
最后向~/.bash_profile中添加 source ~/.bashrc

macOS终端样式修改

~/.bash_profile中添加

export CLICOLOR=1
export PS1='\[\e[35;1m\]> \[\e[0m\]'

macOS中重置launchpad默认布局

rm ~/Library/Application\ Support/Dock/*.db && killall Dock
defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock

macOS快速预览插件

brew cask install qlcolorcode qlstephen qlmarkdown quicklook-json qlprettypatch quicklook-csv betterzipql qlimagesize webpquicklook suspicious-package quicklookase qlvideo

macOS设置终端临时代理

export ALL_PROXY=socks5://127.0.0.1:1080

设置mpv记住播放位置

~/.config/mpv/mpv.conf
save-position-on-quit=yes

h264视频的分离和混流

ffmpeg.exe -i input.mkv -y -vcodec copy -acodec copy output.mp4