Animated CSS borders.
Firefox is doing weird things with the box-shadow, making one side thicker than the others.
| # if you havent done it yet, please download the tor-browser and start it | |
| # https://www.torproject.org/download/download-easy.html.en | |
| wget https://www.torproject.org/dist/torbrowser/5.0/tor-browser-linux64-5.0_en-US.tar.xz | |
| tar xf tor-browser-linux64-5.0_en-US.tar.xz | |
| # download the source of proxychains-ng | |
| git clone https://github.com/rofl0r/proxychains-ng.git | |
| cd proxychains-ng |
| cat /proc/diskstats | awk '$3 !~ /loop*|ram*/ {print $3 " " $6 " " $9 " "}' |
| <?php | |
| $pingTarget = "baidu.com"; | |
| $pingCount = 4; | |
| //It's very important to escape shell arguments to avoid injection attacks. | |
| $output = shell_exec('ping -c'.escapeshellarg((int)$pingCount).' '.escapeshellarg($pingTarget)); | |
| if(empty($output)) | |
| { | |
| echo "An error occured. Most likely an invalid or unreachable domain."; | |
| exit(1); | |
| } |
| # Get CN_IPv4 from APNIC | |
| function CurlIptable(){ | |
| ## 指定作用域分隔符为 '|',同时计算子网掩码位数之后进行拼接(http://www.cnblogs.com/ggjucheng/archive/2013/01/13/2858470.html) | |
| curl $Delegated_apnic_latest_URL | grep 'apnic|CN|ipv4' | awk -F '|' '/CN/&&/ipv4/ {print "iptables -t nat -I SHADOWSOCKS -d " $4 "/" 32-log($5)/log(2) " -j RETURN" }'|cat > $save_to_file | |
| } |
| # Chrome Cache | |
| mkdir -p "/dev/shm/Chrome" -m 1777 | |
| [ -d "$HOME/.cache/google-chrome" ] && [ ! -h "$HOME/.cache/google-chrome/Defau$ | |
| rm -fR "$HOME/.cache/google-chrome/Default" | |
| ln -s "/dev/shm/Chrome" "$HOME/.cache/google-chrome/Default" | |
| } |