Mac抓取小程序源码

  1. 安装安卓模拟器 https://mumu.163.com/
  2. 模拟器设置-开启ROOT权限
  3. 安装微信 https://weixin.qq.com/download
  4. 安装 RE文件管理器
  5. 登录微信,点击想要抓取小程序(小程序会闪退)
  6. 打开 RE文件管理器,路径:/data/data/com.tencent.mm/MicroMsg/32位字符路径/appbrand/pkg/
  7. 长按文件夹压缩,压缩后通过微信发送
  8. 下载反编译工具:https://github.com/qwerty472123/wxappUnpacker
  9. 执行命令:npm i
  10. node wuWxapkg.js xxx..wxapkg
2023/05/12 posted in  杂项

Fire TV stick 4K

准备

  • 梯子
  • 电视HDMI输入
Read more   2023/05/12 posted in  杂项

Git Commit Msg

<type>(<scope>): <subject>

<body>

<footer>

Example

fix(middleware): ensure Range headers adhere more closely to RFC 2616

Add one new dependency, use `range-parser` (Express dependency) to compute
range. It is more well-tested in the wild.

Fixes #2310
Read more   2023/05/12 posted in  杂项

npm version

版本示例:1.2.3 MAJOR.MINOR.PATCH:

1.2.3
┬ ┬ ┬
│ │ │
│ │ └ 补丁版本:bug修复,向后兼容
│ └── 次要版本:新增功能,向后兼容
└──── 主要版本:修改不向后兼容的api
Read more   2023/05/12 posted in  杂项

cron-parser

Github: cron-parser

*    *    *    *    *    *
┬    ┬    ┬    ┬    ┬    ┬
│    │    │    │    │    |
│    │    │    │    │    └ day of week (0 - 7) (0 or 7 is Sun)
│    │    │    │    └───── month (1 - 12)
│    │    │    └────────── day of month (1 - 31)
│    │    └─────────────── hour (0 - 23)
│    └──────────────────── minute (0 - 59)
└───────────────────────── second (0 - 59, optional)
  1. 每10秒执行: */10 * * * * *
  2. 每周一10点执行: 0 0 10 ? * 1
  3. 每月1号10点执行: 0 0 10 1 * ?

暂时不支持:LW#

2023/05/12 posted in  杂项

Mac修改屏幕快照保存的位置

$ defaults write com.apple.screencapture location <path>
$ killall SystemUIServer
2023/05/12 posted in  杂项

docker

访问容器

docker exec -it <CONTAINER ID> /bin/bash

拷贝容器文件至本地

docker cp <IMAGE>:<容器路径> <本地路径>

拷贝本地文件至容器

docker cp <本地文件> <IMAGE>:<容器路径>

2023/05/12 posted in  杂项

tree

brew install tree
# 指定显示目录
$ tree -d ./src
# 指定显示深度
$ tree -d ./src -L 3
# 忽略文件
tree -I 'node_modules|dist'
# 匹配文件
tree -P 'src'
# 中文乱码
tree -N

命令说明:

Read more   2023/05/12 posted in  杂项

Mac使用U盘安装系统

注意备份将要安装系统的电脑内容

官网教程:https://support.apple.com/zh-cn/HT201372

  • U盘抹掉格式为:Mac OS 扩展(日志式) 重命名为:UM
  • 下载镜像High.Sierra.dmg并打开
  • 打开终端并输入:
Read more   2023/05/12 posted in  杂项