$ docker run -d -p 8888:8888 pahud/shadowsocks-python -s 0.0.0.0 -p 8888 -k 1234 -m aes-256-cfb --workers 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
#deb [Ubuntu-Server 10.04.4 LTS _trusty Lynx_ - Release amd64 (20120214.2)]/ lucid main restricted | |
deb-src http://mirrors.tencentyun.com/ubuntu trusty main restricted | |
deb-src http://mirrors.tencentyun.com/ubuntu trusty universe | |
deb-src http://mirrors.tencentyun.com/ubuntu trusty multiverse | |
deb-src http://mirrors.tencentyun.com/ubuntu trusty-updates main restricted | |
deb-src http://mirrors.tencentyun.com/ubuntu trusty-updates universe | |
deb-src http://mirrors.tencentyun.com/ubuntu trusty-updates multiverse | |
deb http://mirrors.tencentyun.com/ubuntu trusty main restricted | |
deb http://mirrors.tencentyun.com/ubuntu trusty universe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 443 ssl spdy; | |
server_name upyun.com; | |
ssl_certificate upyun.com.pem; | |
ssl_certificate_key upyun.com.key; | |
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -n | openssl s_client -connect <HTTPS_HOSTNAME>:443 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
apt-get install -y linux-image-generic-lts-trusty | |
wget -qO- https://get.docker.com/ | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=http://49f8ef35.m.daocloud.io\"" | sudo tee -a /etc/default/docker | |
sudo service docker restart |
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.ip_local_port_range = 1024 65000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_max_tw_buckets = 5000
中華電信國際漫遊申請方式
##在國內
- 手機撥打免付費「*135#」於互動式選單申請
- 下載中華電信客服APP進行申請
- 已持有中華電信月租型門號之客戶,可直接登入emome網站申請服務
- 手機直撥800或市話撥0800-080-090 免付費客服專線洽詢
- 至中華電信全區直營服務中心(不含特約服務中心)申請
##在國外
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- check https://github.com/jkeys089/lua-resty-hmac | |
local hmac = require "resty.hmac" | |
local hmac_md5 = hmac:new("secret_key", hmac.ALGOS.MD5) | |
local ok = hmac_md5:update("1234") | |
local mac = hmac_md5:final() | |
local str = require "resty.string" | |
ngx.say("hmac_md5: ", str.to_hex(mac)) | |