https://onetransistor.blogspot.com/2016/04/install-winusb-on-ubuntu-1604-lts.html
sudo add-apt-repository ppa:nilarimogard/webupd8
Category Archives: Linux
Linux下ape切分并转换为mp3
#转化为flac
ffmpeg -i test.ape test.flac
# 分割
iconv -f gbk -t utf8 test.cue > test_utf8.cue
shntool split -t "%n.%p.%t" -f test.cue -o flac test.flac -d output
# flac转为mp3
flac -cd test.flac | lame --preset insane test.mp3
也可以flac直接分割成mp3[......]
Linux下解决DNS污染
官方的dnscrypt提供了安装脚本。
1 安装
wget https://download.dnscrypt.org/dnscrypt-proxy/binaries/linux/dnscrypt-proxy-x86_64-linux-musl.tar.gz
tar -xzvf dnscrypt-proxy-x86_64-linux-musl.tar.gz
cd dnscrypt-proxy
sudo installer.sh
可以点这里找最新包
2 使用
alias d[......]
Linux下全局Socks5代理软件tsocks
1 安装
sudo apt-get install tsocks
2 配置
# 修改配置文件:
sudo vim /etc/tsocks.conf
# 将其内容改成以下几行并保存退出:
local = 192.168.1.0/255.255.255.0 #local表示本地的网络,也就是不使用socks代理的网络
server = 127.0.0.1 # SOCKS 服务器的 IP
server_type = 5 # SOCKS 服务版本
server_port = 9999[......]
Docker的swarm使用本地网络
如果要将container配置成本地LAN的ip区域,需要使用最新的macvlan驱动,并且网卡要支持混杂模式。
如果你用的是docker-machine,务必加上这一个参数:
docker-machine create -d virtualbox --virtualbox-hostonly-nicpromisc allow-all node-1
官方macvlan指南
传送门:《Local Scope Swarm Networking》
另一个解决的帖子[......]
