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
publicip=114.84.211.65 | |
colo=LAX | |
domain=speed.haoren.ml | |
file=cache.jpg | |
url=https://github.com/badafans/better-cloudflare-ip | |
app=20201208 | |
database=20201208 | |
104.16.0. | |
104.16.1. | |
104.16.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
#!/bin/sh | |
# random cloudflare anycast ip | |
cd /tmp/home/root | |
#read -p "请设置期望到 CloudFlare 服务器的带宽大小(单位 Mbps):" bandwidth | |
bandwidth=20 | |
speed=$(($bandwidth*128*1024)) |
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
for file in *.mkv | |
do | |
if ! [ -f "${file%.*}.mp4" ] ; then | |
echo "${file}" && ffmpeg -i "${file}" -acodec mp3 -vcodec copy "${file%.*}.mp4" | |
fi | |
if ! [[ -z $(grep '[^[:space:]]' "${file%.*}.mp4") ]] ; then | |
echo "Convert successful" | |
rm -f "$file" | |
else | |
echo "Convert failed, keep mkv as it is" |
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 hgbds; | |
input trt $ type $ patno hgbch @@; | |
datalines; | |
ACT C 1 1.7 ACT C 3 -0.2 ACT C 6 1.7 | |
ACT C 7 2.3 ACT C 10 2.7 ACT C 12 0.4 | |
ACT C 13 1.3 ACT C 15 0.6 ACT P 22 2.7 | |
ACT P 24 1.6 ACT P 26 2.5 ACT P 28 0.5 | |
ACT P 29 2.6 ACT P 31 3.7 ACT P 34 2.7 | |
ACT P 36 1.3 ACT R 42 -0.3 ACT R 45 1.9 | |
ACT R 46 1.7 ACT R 47 0.5 ACT R 49 2.1 |
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
cd path2file | |
unicode encoding set gb18030 | |
unicode analyze * | |
unicode translate *, invalid |
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
%global MIDNUM TARGETNUM FRONTNUM ENDNUM ERRNUM ii; | |
%let FRONTNUM=1; | |
%let TARGETNUM=200; | |
%let ENDNUM=1024; | |
%let ERRNUM=0.5; | |
%let ii=0; | |
%macro search; |
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
%let a = 0 ; | |
%let b = 1; | |
%put &a; | |
%put &b; | |
%macro xx; | |
%global a b; | |
%if %sysevalf(&a < 10000000000) %then %do; | |
%let a= %sysevalf(&a + &b); | |
%let b= %sysevalf(&a + &b); | |
%put &a; |
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
#!/usr/bin/env perl | |
# This work is licensed under the GNU Public License (GPLv3). | |
# To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html | |
# To read more about this script go to: http://mpcabd.xyz/using-curl-with-proxy-pac-configuration-files/ | |
use strict; | |
use warnings; |