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 查看全部服务情况 防火墙 systemctl stop firewalld.servic...

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

uniapp 导航栏tab切换 底下有个长方形跟着滑动

获取文字的宽度, 在拿到文字距离左侧的距离. 每次点击就更新一下宽度和left var that = this; const query = uni.createSelectorQuery().in(that); query.select('#nav').boundingClientRect(data => { data.width; data.left; console.log(JSON.stringify(data)) }).exec(); 在给这个元素添加过渡...

read more..