迁移 docker 数据目录
# 查看docker存储路径 docker info | grep "Docker Root Dir" # 停掉docker服务 systemctl stop docker # 移动docker目录 mv /var/lib/docker /home/docker_home # 创建软链接 ln -s /home/docker_h…
powershell 容器磁盘空间相关
# 批量清理 $logDir = 'C:\Users\ContainerAdministrator\AppData\Roaming\Tencent\WXWork\Log' $tmpDir = 'C:\Users\ContainerAdministrator\AppData\Local\Temp\Tencent'…
windows 命令行设置代理服务器及防火墙
# 通过代理查询访问 ip Invoke-RestMethod -Uri 'http://api.ipify.org' -Proxy 'http://10.10.2.103:1001' # 注:不是所有程序都使用 winhttp, winget 似乎使用 winhttp # 设置代理 netsh winhtt…
测试未公开类及方法
测试未公开类及方法 测试未公开类方法 I # 在待测试项目代码文件中加入, IoxMcpServer.Test 为测试项目 using System.Runtime.CompilerServices; [assembly:InternalsVisibleTo("IoxMcpServer.Test")] 测试未公开类方法 II #…
seq 日志系统
# 设置 # 这里使用了 Microsoft.Extensions.Logging var data = new Dictionary<string, string?>(); data["Seq:ServerUrl"] = "http://xxxxx:xxx"; // api 地址 (注:与 ui…
adb 列出用户当前运行用户 ID
# 返回当前用户 id .\adb.exe shell am get-current-user .\adb.exe shell cmd activity get-current-user # alternative command .\adb.exe shell 'dumpsys activity | grep mCurrentUser&…
Android 开启副屏操作流程
开启开发者模式 使用命令开启副屏 ./adb.exe shell settings put global overlay_display_devices 1920x1080/180 多个副屏的话 .\adb.exe shell "settings put global overlay_display_devices '1920x…