This file contains hidden or 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/sh | |
| # 文件生成路径 / Directory | |
| TMPDIR="./tmp" | |
| # 线程数 / Thread numbers | |
| THNUM=5 | |
| # 文件数量 / File numbers | |
| JOBNUM=100000 | |
| function randStr | |
| { | |
| if [[ ! -n "$1" ]]; then |
This file contains hidden or 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
| [Unit] | |
| Description=Polipo | |
| [Service] | |
| ExecStart=/usr/local/polipo/polipo -c /etc/polipo/config | |
| Restart=on-abort | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or 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 | |
| # | |
| # Created by L.STONE <web.developer.network@gmail.com> | |
| # Mod By Ryan.L <github-benzBrake@woai.ru> | |
| # ------------------------------------------------------------- | |
| # 自动创建 Docker TLS 证书 | |
| # ------------------------------------------------------------- | |
| # 以下是配置信息 | |
| # Config start |
This file contains hidden or 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
| LANG="" | |
| while true | |
| do | |
| up_time1=`ifconfig $1 | grep "bytes" | awk '{print $6}' | awk -F: '{print $2}'` | |
| down_time1=`ifconfig $1 | grep "bytes" | awk '{print $2}' | awk -F: '{print $2}'` | |
| sleep 1 | |
| clear | |
| up_time2=`ifconfig $1 | grep "bytes" | awk '{print $6}' | awk -F: '{print $2}'` | |
| down_time2=`ifconfig $1 | grep "bytes" | awk '{print $2}' | awk -F: '{print $2}'` | |
| up_time1=${up_time1} |
This file contains hidden or 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
| btpanel.xxx.xxx { | |
| tls xxxx@xxx.xx | |
| gzip | |
| proxy /transmission http://xx.xx.xx:9091/transmission { | |
| without /transmission | |
| transparent | |
| } | |
| log /home/wwwlogs/bbtpanel.xxx.xxx.log | |
| } |
This file contains hidden or 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 | |
| # tree.sh | |
| # Status Code | |
| # 1 DIR not exits | |
| # 2 Parameter error | |
| # To do | |
| # Add parameter depth | |
| function list() { | |
| DIR=$1 | |
| NFDIR=$(echo $DIR | \sed 's#\/$##g') |
This file contains hidden or 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/sh | |
| export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| BASE_DIR="$1" | |
| DATE_FORMAT=`date +"%Y%m%d"` | |
| NGINX_DIR=nginx | |
| if [ -z "$BASE_DIR" ]; then | |
| echo "Base directory is not specified." | |
| exit 1 | |
| fi | |
| cd ${BASE_DIR} |
This file contains hidden or 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
| package net.pupt.whois.panel.controller; | |
| import java.io.IOException; | |
| import java.io.PrintWriter; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.annotation.WebServlet; | |
| import javax.servlet.http.HttpServlet; |
This file contains hidden or 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 80; | |
| server_name ct.com; | |
| location ~ ^/ct/(.*)$ { | |
| proxy_pass http://IP:9000/$1; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| } | |
| location /sync { |
This file contains hidden or 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
| blog.iplayloli.com { | |
| tls webmaster@baidu.com | |
| gzip | |
| proxy / https://blog.pupt.net { | |
| header_upstream X-Real-IP {remote} | |
| header_upstream X-Forwarded-Proto {scheme} | |
| } | |
| filter rule { | |
| content_type text/html.* | |
| search_pattern blog.pupt.net |