Docker

安装yum update –更新yum install -y yum-utils device-mapper-persistent-data lvm2 –依赖yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo –换源yum list docker-ce –showduplicates | sort -r –查看docker版本yum install docker-ce-17.12.1.ce –选择版本安装 常用命令docker start/stop –启动停止docker i...

read more..

Linux操作指令

mv 旧名字 新名字 –改名mv 名字 路径 –移动rm -rf 文件 –删除ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime –修改时区|ln -s /app/nodejs/bin/node /usr/local/bin/ –软连接tar -xvf –解压ps -ef | grep 服务名字 查看配置文件netstat -tunlp|grep 8080 端口占用情况netstat -antp 查看全部服务情况 zip -r  压缩后的文件名  原文件名 :: z...

read more..

密码保护: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.writeFileSync(`...

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..

下载文件

function downloadFile(u) { http.get(u, (res) => { var data = ""; res.setEncoding('binary'); res.on('data', function (chunk) { data += chunk }) res.on('end', () => { let filename = Date.now(); fs.writeFileSync(`./ppx/${filename}.mp4`, data, 'binary') console.log(filename + 'end'); ...

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..