[Unit]
Description=FRP Server Daemon
[Service]
Type=simple
ExecStartPre=-/usr/sbin/setcap cap_net_bind_service=+ep /opt/bin/frps
ExecStart=/opt/bin/frps -c /opt/etc/frps.ini
Restart=always
This file contains 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
#!/data/data/com.termux/files/usr/bin/bash | |
# input validator and help | |
function echoerr() { | |
echo "$@" 1>&2; | |
} |
This file contains 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
<?php | |
/*提取Bing网站的信息*/ | |
$str=file_get_contents('https://www.bing.com/HPImageArchive.aspx?idx=0&n=1'); | |
/*匹配字符串中的url超链接,成功返回 1 ,否则返回 0 */ | |
if(preg_match("/<url>(.+?)<\/url>/ies",$str,$matches)){ | |
$imgurl='http://www.bing.com'.$matches[1]; | |
} | |
if($imgurl){ | |
/*用于发送原生的 HTTP 头,提示输出图片*/ | |
header('Content-Type: image/JPEG'); |
This file contains 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 | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
To install tcptraceroute on Debian/Ubuntu:
$ sudo apt-get install tcptraceroute bc
To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:
$ sudo yum install tcptraceroute bc
This file contains 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 | |
that_ip=192.168.31.1 | |
server_ip=10.10.16.27 | |
my_ip=$(ip -f inet address show ens33| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/24'| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') | |
echo that_ip=$that_ip | |
echo server_ip=$server_ip | |
echo my_ip=$my_ip |
This file contains 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
112.106.53.22 cache01-kcn.ic | |
112.106.53.34 cache04-kcn.ic | |
121.202.130.66 m121-202-130-66.smartone.com | |
203.225.255.10 whcc.kolon.co.kr | |
203.225.255.11 | |
211.111.172.71 a01.kuwoo.co.kr | |
211.111.172.72 a02.kuwoo.co.kr | |
219.84.192.250 219-84-192-250.STATIC.so-net.net.tw |
This file contains 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 | |
cd /usr/local/src | |
wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
cd apps/sys-utils/start-stop-daemon-IR1_9_18-2 | |
gcc start-stop-daemon.c -o start-stop-daemon | |
cp start-stop-daemon /usr/sbin/ |
OlderNewer