2017年5月

shadowsocks to http proxy

pacman -S polipo
polipo socksParentProxy=localhost:1080
export http_proxy=http://127.0.0.1:8123
export https_proxy=http://127.0.0.1:8123
export http_proxy=http://192.168.180.101:11128
export https_proxy=http://192.168.180.101:11128
soure /etc/profile

archinux chacha20-itef should install

pacman -S libsodium

privoxy

pacman -S privoxy

对称加密解密

可以使用openssl对字符串进行对称加密

加密

echo -n "<str>" | openssl enc -p -des3 -k <passwd> -a

openssl enc -p -des3 -pass pass:"<passwd>" -a -in <in> -out <out>

解密

echo -n "<str>" | openssl enc -d -des3 -k <passwd> -a

openssl enc -d -des3 -pass pass:"<passwd>" -a -in <in> -out <out>

python环境搭建

  1. 验证已经安装了python2
python2 --version
  1. 安装pip2
wget https://bootstrap.pypa.io/get-pip.py
python2 get-pip.py
pip2 --version
  1. 安装virtualenv
pip2 install virtualenv
virtualenv .env
  1. 激活当前pip环境
source .env/bin/activate
  1. 安装requests
pip install requests
pip freeze
  1. 安装httpbin
pip install gunicorn httpbin
pip freeze
www.000webhost.com