对于 shadowsocks-rust 也适用
1.请确保已经正确安装好了 ss-libev
没有安装则请看: 如何部署一台抗封锁的Shadowsocks-libev服务器
#!/bin/bash | |
# | |
BASE=/tmp | |
PID=$BASE/app.pid | |
LOG=$BASE/app.log | |
ERROR=$BASE/app-error.log | |
PORT=11211 | |
LISTEN_IP='0.0.0.0' | |
MEM_SIZE=4 |
对于 shadowsocks-rust 也适用
没有安装则请看: 如何部署一台抗封锁的Shadowsocks-libev服务器
''' | |
These are 5 different methods that attempt to retrieve the Quicktime property metadata "Media DateEncoded" from an 'mp4' file. | |
''' | |
import os | |
import re | |
import struct | |
import subprocess as sub | |
from datetime import datetime | |
from hachoir.parser import createParser |
Tool | curl | wget | Ruby | Python | |
---|---|---|---|---|---|
http_proxy | Yes | Yes | Yes | Yes | |
HTTP_PROXY | No | No | Yes (https://github.com/ruby/ruby/blob/0ed71b37fa9af134fdd5a7fd1cebd171eba83541/lib/uri/generic.rb#L1519) | Yes (if REQUEST_METHOD not in env) | |
https_proxy | Yes | Yes | Yes | Yes | |
HTTPS_PROXY | Yes | No | Yes | Yes | |
Case precedence | lowercase | lowercase only | lowercase | lowercase | |
Reference | https://github.com/curl/curl/blob/30e7641d7d2eb46c0b67c0c495a0ea7e52333ee2/lib/url.c#L2250-L2266 | https://github.com/jay/wget/blob/099d8ee3da3a6eea5635581ae517035165f400a5/src/retr.c#L1222-L1239 | https://github.com/ruby/ruby/blob/0ed71b37fa9af134fdd5a7fd1cebd171eba83541/lib/uri/generic.rb#L1474-L1543 | https://github.com/python/cpython/blob/030a713183084594659aefd77b76fe30178e23c8/Lib/urllib/request.py#L2488-L2517 |