Animated CSS borders.
Firefox is doing weird things with the box-shadow, making one side thicker than the others.
| # 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" | |
| } |
| # 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 | |
| } |
| <?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); | |
| } |
| cat /proc/diskstats | awk '$3 !~ /loop*|ram*/ {print $3 " " $6 " " $9 " "}' |
| # 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 |
| ## 当前可用环境变量如下,你可在编译脚本里进行引用使用 | |
| ## WORKSPACE 工作目录,即流水线名称 | |
| ## IMAGE 输出镜像名称 | |
| ## PKG_FILE 编译出的 tar 包名称 | |
| ## DIST_DIR 编译出 tar 包的目的目录 | |
| ## SERVICE 编译的服务名称 | |
| #!/bin/bash | |
| set -e |
| #!/bin/bash | |
| killall aria2c &>/dev/null | |
| 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" /aria/aria2.conf`" ]; then | |
| sed -i '$a bt-tracker='${list} /aria/aria2.conf | |
| echo add......starting | |
| sleep 3 | |
| sudo -u www-data aria2c --conf-path=/aria/aria2.conf -D | |
| ps -aux|grep aria | |
| else |
| initOS() { | |
| OS=$(uname | tr '[:upper:]' '[:lower:]') | |
| if [ -n "$DEP_OS" ]; then | |
| echo "Using DEP_OS" | |
| OS="$DEP_OS" | |
| fi | |
| case "$OS" in | |
| darwin) OS='darwin';; | |
| linux) OS='linux';; | |
| freebsd) OS='freebsd';; |
| function Queue(){ | |
| var items = []; | |
| function Stack() { | |
| var item = []; | |
| this.push = function (elem) { | |
| item.push(elem); | |
| return item; | |
| }; | |
| this.pop = function () { | |
| return item.pop(); |