个人笔记

excalidraw docker 部署

excalidraw docker 部署Dockerfile 文件FROM node:14-alpine AS buildWORKDIR /opt/node_appCOPY package.json yarn.lock ./RUN yarn --ignore-optionalARG NODE_ENV

drawio docker 部署

drawio docker 部署DockerfileFROM openjdk:8-alpine AS buildRUN apk update --no-cache && \ apk add --no-cache \ apache-ant \ gitR

镜像站点

镜像站点Rancher 镜像http://mirror.cnrancher.com/阿里云镜像 安装 dockercurl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun阿里云镜像站https://developer.ali

SSL 证书格式转换

SSL 证书格式转换CRT 格式转 PEM openssl x509 -in weihongbin.com.crt -out weihongbin.com.pem -outform PEM显示证书的内容openssl x509 -in weihongbin.com.pem -noout -text

yarn npm 设置淘宝镜像

yarn npm 设置淘宝镜像npm 设置淘宝镜像npm config set registry https://registry.npmmirror.comyarn 设置淘宝镜像yarn config set registry https://registry.npmmirror.com常用淘宝镜

OTP 验证 核心代码

OTP 验证 核心代码核心代码package com.example.twofactorauthdemo;import javax.crypto.Mac;import javax.crypto.spec.SecretKeySpec;import java.security.GeneralSecuri

Windows netsh 使用

Windows netsh 使用查看所有的端口转发规则netsh interface portproxy show all增加一条端口转发规则netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=3389 co

K3s 嵌入式DB的高可用

K3s 嵌入式DB的高可用节点iphostnametype192.168.163.141k8s-m1master192.168.163.142k8s-m2master192.168.163.143k8s-m3master192.168.163.144k8s-w1work192.168.163.145

微信图片文件解密

微信图片文件解密import os# 图片字节头信息,# [0][1]为jpg头信息,# [2][3]为png头信息,# [4][5]为gif头信息pic_head = [0xff, 0xd8, 0x89, 0x50, 0x47, 0x49]# 解密码decode_code = 0x1adef ge

Windows Terminal 快捷键

Windows Terminal 快捷键分屏快捷键功能Shift + Alt + “+”横向分屏Shift + Alt + “-“竖向分屏Ctrl + Shift + w取消分屏/关闭当前标签页Ctrl + Shift + t打开新标签页光标移动快捷键功能Alt + 方向键分屏间移动光标光标区大小快