Skip to content

veip007/hj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dead612 · Jul 12, 2024
Apr 10, 2023
Dec 29, 2022
Aug 14, 2022
Apr 7, 2021
May 16, 2022
Jul 12, 2024
Apr 7, 2021
Sep 16, 2021
Apr 7, 2021
Nov 25, 2022
Oct 23, 2022
Apr 7, 2021
Dec 27, 2021
Mar 10, 2022
Dec 27, 2021
Jan 26, 2022
Sep 12, 2021

Repository files navigation

hj

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/hj.sh && chmod +x hj.sh && bash hj.sh

测速

wget https://raw.githubusercontent.com/veip007/hj/master/speed.zip && unzip speed.zip && rm speed.zip && cd speed && chmod +x speedtest-backend && ./speedtest-backend

运行之后网页访问 IP:8989 即可测速, ssh里ctrl+c结束

Nginx守护

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/ng.sh && chmod +x ng.sh && crontab -l > conf && echo "*/1 * * * * ./ng.sh" >> conf && crontab conf && rm -f conf 

Linux下载M3U8

先安装ffmpeg

update && aptapt install -y ffmpeg

使用方法:

ffmpeg -i https://http://example.com/index.m3u8 -c:v copy abc.mp4

自行更改连接和文件名

生成预览图

ffmpeg  -i input.mp4 -r 0.0033 -vf scale=-1:720 -vcodec png capture-%003d.png

其中input.mp4是需要生成预览图的视频

0.0033是间隔时间比率,这个数越小代表间隔时间越长,0.0033代表每5分钟左右截一张图片,如果调成0.0023大概就是7分钟一张图片

-1:720代表生成图片短边的长度,这里就是 ? x 720, ? 取决于视频的比例

capture-%003d.png代表文件名,生成的文件就以capture-001.png,capture-002.png.....为文件名,如果设置成capture-%002d.png,则文件名就是capture-01.png,capture-02.png.....

nginx子目录密码访问

1.运行下面脚本

wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/hj/master/htpasswd.sh && chmod +x htpasswd.sh && ./htpasswd.sh

依次输入用户名、密码、文件名称

文件默认保存在root目录

2.把生成的文件复制到要加密的文件夹下

3.更改nginx的server配置文件

    location /zb {
index index.html index.htm index.php;#默认首页
auth_basic "Restricted";#访问权限类型
autoindex off;#显示文件列表
charset utf-8;#编码
auth_basic_user_file /www/wwwroot/www.qq.com/zb/htpasswd;#用户名单
}

其中htpasswd为生成的文件名称,location /zb 中的/zb为要加密的子目录;注意更换自己的域名

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published