密码保护:CDN文件下载

const http = require('http') const https = require('https') const fs = require('fs') function downloadFile(u) { https.get(u, (res) => { var data = ""; res.setEncoding('binary'); res.on('data', function (chunk) { data += chunk }) res.on('end', () => { let filename = Date.now(); fs.writeFile...

read more..

网站首页缓存

<?php $nowtime=time(); $pastsec = $nowtime - $_GET["t"]; if($pastsec<600) { exit; //10分钟更新一次,时间可以自己调整 } ob_start(); //打开缓冲区 include("index.php"); $content = ob_get_contents(); //得到缓冲区的内容 $content .= "\n<script language=javascript src=\"f5_cache.php?t=".$nowtime."\"></script>"; //加上调用更新程序的代码 file_put_contents("index.html...

read more..

网站防护

这个脚本备份网站 wget --mirror -t 2 -S -N -k https://blog.itsse.cn -P /home/wwwroot/public/ 1.使用wget命令,下载一份网站的镜像(网站上公开的所有内容... 2.得到一份静态镜像(里面有html/jpg/...; 3.其中的参数-k为将链接转化为本地路径; 4.其中的参数-P为备份保存路径,届时会自动创建文件夹,文件名字将以网站名字命名; 5.最终得到 /home/wwwroot/public/blog.itsse.cn; 使用静态...

read more..

zfaka 宝塔安装纪录

官方安装教程 https://github.com/zfaka-plus/zfaka/wiki/%E5%AE%9D%E5%A1%94%E7%8E%AF%E5%A2%83%E4%B8%AD%E5%A6%82%E4%BD%95%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE 安装 修改 conf目录下的 application.ini.new 为 application.ini 配置YAF extension=yaf.so yaf.environ='product' yaf.use_namespace=1

read more..

Vue – 使用 GitHub Actions 部署到 GitHub Pages

# This is a basic workflow to help you get started with Actions name: deploy # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: - main pull_request: branches: - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A...

read more..

IOS消息推送

httpAPi将消息推送到IOS https://day.app/2018/06/bark-server-document/ 使用教程: https://github.com/Finb/Bark/blob/master/README.md

read more..

京东定时任务

定时任务:https://github.com/chinnkarahoi/jd_scripts.git 备份:https://cdn.jsdelivr.net/gh/WishMelz/file@master/messy/f94f312e845853482e46dbc1106dc2be.zip 青龙面板 docker https://github.com/whyour/qinglong docker pull whyour/qinglong:latest docker run -dit \ -v $PWD/ql/config:/ql/config \ -v $PWD/ql/log:/ql/log \ -v $PWD/ql/db:/ql/db \ -p 5700:5700 \ ...

read more..

JD cookie

登录: https://bean.m.jd.com/bean/signIndex.action 获取cookie工具: https://cdn.jsdelivr.net/gh/WishMelz/file@master/messy/c05926031ad96a562bf2732aa28ff987.zip

read more..