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
| /* 替换图片链接为 https */ | |
| function my_content_manipulator($content){ | |
| if( is_ssl() ){ | |
| $content = str_replace('http://doufu.ru/wp-content/uploads', 'https://doufu.ru/wp-content/uploads', $content); | |
| $content = str_replace('http://cdn.doufu.ru/', 'https://cdn.doufu.ru/', $content); | |
| $content = str_replace('http://doufu.ru/sth/', 'https://doufu.ru/sth/', $content); | |
| } | |
| return $content; | |
| } | |
| add_filter('the_content', 'my_content_manipulator'); |
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 | |
| # $1 is gid. | |
| # $2 is the number of files. | |
| # $3 is the path of the first file. | |
| DOWNLOAD=/data/aria2/download # no trailing slash! | |
| COMPLETE=/data/aria2/gg # no trailing slash! | |
| LOG=/data/aria2/mvcompleted.log | |
| SRC=$3 |
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=Kcptun Client Service | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=nobody | |
| ExecStart=/etc/kcptun/kcptun_client -c /etc/kcptun/kcptun.conf | |
| Restart=always | |
| RestartSec=5 |
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 |
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
| 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
| #!/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
| #!/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
| 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
| 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} |