"Locale problems" in both the 32-bit & 64-bit versions of Debian 8 droplets
Create a new Debian 8 droplet and login as root
:
#!/bin/bash | |
echo ". {" > Corefile | |
echo " forward . 208.67.222.222:443 208.67.222.222:5353 208.67.220.220:443 208.67.220.220:5353 tls://1.0.0.1 tls://8.8.8.8 tls://8.8.4.4 {" >> Corefile | |
china=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/accelerated-domains.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
apple=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/apple.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
google=`curl https://cdn.jsdelivr.net/gh/felixonmars/dnsmasq-china-list/google.china.conf -s | while read line; do awk -F '/' '{print $2}' | grep -v '#' ; done | paste -sd " " -` | |
echo " except $china $apple $google" >> Corefile | |
echo " }" >> Corefile | |
echo " proxy . 116.228.111.118 180.168.255.18" >> Corefile | |
echo " log" >> Corefile |
#!/bin/bash | |
/usr/sbin/service aria2 stop | |
list=`wget -qO- https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt|awk NF|sed ":a;N;s/\n/,/g;ta"` | |
if [ -z "`grep "bt-tracker" /root/.aria2/aria2.conf`" ]; then | |
sed -i '$a bt-tracker='${list} /root/.aria2/aria2.conf | |
echo add...... | |
else | |
sed -i "s@bt-tracker.*@bt-tracker=$list@g" /root/.aria2/aria2.conf | |
echo update...... | |
fi |
#!/bin/bash | |
Usage(){ | |
echo "usage: e.sh [--list] or [Source compressed file]" | |
echo " [Destination path]" | |
echo "Self uncompression accroding to the file name suffix" | |
echo " " | |
echo "eg. e.sh docker-18.06.tgz /path/to/data" | |
exit | |
} |
# Description: How to assign VPC addresses to Docker containers associated as secondary IP addresses to an ENI in AWS | |
# Operating System: Amazon Linux AMI 2016.09.1 (HVM) | |
# Prerequisites: | |
# - Assign N number of secondary IP addresses to network interface on Docker host | |
# - Each new container requires additional assignment of secondary IP addresses | |
# - Containers can be launched with --net=none to avoid adding a Docker networked NIC (docker run --net=none -d imageId) | |
# Credit to https://github.com/jpetazzo/pipework for steps on linking IP address | |
################# Setup Bridge of eth0 ###################### | |
yum install bridge-utils -y |
# | |
# reference: http://namsep.blogspot.com/2015/12/yad-centos-7-iptables-ipset-and-fail2ban.html | |
# reference: http://pkgs.fedoraproject.org/cgit/ipset.git/tree/ipset.service | |
# file location: /etc/systemd/system/ipset.service | |
# cp ipset.service /etc/systemd/system | |
# systemctl enable ipset.service | |
# systemctl start ipset | |
# systemctl status ipset.service | |
# | |
# mkdir /etc/ipset |
package main | |
import ( | |
"bytes" | |
"compress/gzip" | |
"fmt" | |
"io" | |
"log" | |
) |
Serial Keys: | |
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD | |
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD | |
GV7N2-DQZ00-4897Y-27ZNX-NV0TD | |
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0 | |
GZ3N0-6CX0L-H80UP-FPM59-NKAD4 | |
YY31H-6EYEJ-480VZ-VXXZC-QF2E0 | |
ZG51K-25FE1-H81ZP-95XGT-WV2C0 | |
VG30H-2AX11-H88FQ-CQXGZ-M6AY4 |
#!/bin/bash | |
# 你的代理服务器的 IP | |
PROXY_IP="1.2.3.4" | |
PROXY_IPSET="proxy_ipset" | |
INTERNAL_IPSET="internal_ipset" | |
GFW_IPSET="gfw_ipset" | |
CHINA_IPSET="china_ipset" | |
SNI_PORT=443 |
TIME_DURATION_UNITS = ( | |
('week', 60*60*24*7), | |
('day', 60*60*24), | |
('hour', 60*60), | |
('min', 60), | |
('sec', 1) | |
) | |
def human_time_duration(seconds): |