随机数random.org

https://www.random.org/integers/?num=500&min=0&max=12&col=1&base=10&format=plain&rnd=new 其中: num: 随机多少个 min:其中最小的数 max:其中最大的数

read more..

服务器综合测试工具 LemonBench

快速测试: wget -qO- https://cdn.jsdelivr.net/gh/WishMelz/file/2022/LemonBenchIntl.sh | bash -s fast 完整测试: wget -qO- https://cdn.jsdelivr.net/gh/WishMelz/file/2022/LemonBenchIntl.sh | bash -s full 测试结果会发送到一个公共平台上.

read more..

UnixBench工具跑分测试(一)

wget https://cdn.jsdelivr.net/gh/WishMelz/file/2022/UnixBench5.1.3.tgz tar -xf UnixBench5.1.3.tgz cd UnixBench5.1.3 make ./Run 等待即可 问题 make: gcc: Command not found make: *** [pgms/arithoh] Error 127 yum -y install gcc Can't locate Time/HiRes.pm or Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/loc...

read more..

TikTok

博主教程视频:https://www.youtube.com/channel/UCPD2Q2Rak0W5r8MNRRgOqyw Shadowrocket https://www.youtube.com/watch?v=vfeCQ98uhJI https://itiktok.best/ 3.17更新 Shadowrocket https://www.youtube.com/watch?v=wwgVhmBnURM 3.18 圈X https://www.youtube.com/watch?v=0W7Lu8e2sms

read more..

nodejs 反向代理 http-proxy-middleware

const express = require('express'); const app = express(); const proxy = require('http-proxy-middleware'); const port = 3000 const bodyParser = require('body-parser'); app.use(require('cors')()) app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()) var exampleProxy = proxy.createProxyMiddleware({ target: 'http://127.0.0.1:3001', chang...

read more..

时间API

苏宁: https://f.m.suning.com/api/ct.do or http://quan.suning.com/getSysTime.do { "api": "time", "code": "1", "currentTime": 1647506518039, "msg": "" } or { "sysTime2": "2022-03-17 16:46:39", "sysTime1": "20220317164639" } 淘宝: http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp { "api": "mtop.common.getTimestamp", "...

read more..

Nodejs+Express 权限下载文件

先请求一个TOKEN(以用户生成,并且设置过期时间). 以token做验证去下载. 或者直接发送登录的token下载 const express = require('express'); const app = express(); const port = 51413; const bodyParser = require('body-parser'); app.use(require('cors')()) app.use(bodyParser.urlencoded({ extended: false })); app.use(bodyParser.json()) app.use(express.static('./public')) cons...

read more..

Nodejs+Express+Vue 分片上传文件

Vue <template> <div class="upload"> <el-upload :before-upload="befUpload" class="upload-demo" drag action="/" :show-file-list="false" > <el-icon class="el-icon--upload"><upload-filled /></el-icon> <div class="el-upload__text">拖拽或<em>点击上传</em></div> </el-upload> </div> <...

read more..