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
| [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/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=SSH Tunnel(7070) | |
| [Service] | |
| ExecStart=/usr/bin/ssh -qTnN -D 7070 root@192.168.60.65 | |
| 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
| #!/usr/bin/env python2 | |
| # -*- coding:utf-8 -*- | |
| import httplib, urllib | |
| import os, time, json | |
| domain_ids = dict() | |
| ddns_domain = "" | |
| ddns_subdomain = "" | |
| ddns_type="AAAA" # AAAA or A |
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 | |
| # 来自《构建高可用Linux服务器(第4版)》 714/6522 | |
| # Nagios return codes | |
| STATE_OK=0 | |
| STATE_WARNING=1 | |
| STATE_CRITICAL=2 | |
| STATE_UNKNOWN=3 | |
| # Plugin parameters value if not define | |
| LIST_WARNING_THRESHOLD="70" | |
| LIST_CRITICAL_THRESHOLD="80" |
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 | |
| set -o errexit | |
| image=shadowsocksr | |
| # Create a container | |
| container=$(buildah from alpine) | |
| # Add maintainer label | |
| buildah config --label maintainer="Ryan Lieu <github-benzBrake@woai.ru>" | |
| # Install necessary packages | |
| buildah run ${container} apk --update add --no-cache su-exec libsodium py-pip |
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 | |
| export PATH=${PATH}:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:. | |
| # 函数定义 | |
| function info() { | |
| echo -e "\e[36m[信息]$*\e[0m" | |
| } | |
| function warn() { | |
| echo -e "\e[33m[警告]$*\e[0m" | |
| } | |
| function error() { |
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 | |
| # Frp client start script for 453bmini ( QNAP x86_64 NAS) | |
| # Created: 2020-03-02 | |
| # Author: Ryan Lieu<github-benzbrake@woai.ru> | |
| # https://doufu.ru | |
| # Support multiple frpc config file | |
| CONFIG_DIR=/share/homes/admin/.config | |
| # confirm config dir exists | |
| mkdir -pv ${CONFIG_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 | |
| # Ryan Lieu <github-benzbrake@woai.ru> | |
| # 2018.06.27 | |
| # config start | |
| CID= | |
| USER= | |
| PASSWD= | |
| MOUNTPOINT=/mnt/onedrive | |
| LOGDIR=/var/log/onedrive.log | |
| # config end |