测试非公开方法
有空再整理 http://www.liangzhou.pro/posts/csharp_how_to_test_a_private_method/
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…
windows 下检测应用端口
# 列出指定进程名的监听端口 netstat -aon | findstr $(Get-Process adb -ErrorAction SilentlyContinue).Id 0..100 | % { Start-Sleep 1 ; netstat -aon | ? { $_ -like '*5432*' -and $_ -…
解码 rdp 或是 rdg 远程配置文件中的密码
# https://superuser.com/questions/1103193/decrypt-rdp-password-stored-in-rdg-file # 解码 rdp 或是 rdg 远程配置文件中的密码 # 使用 SysinternalsSuite 的 RDCMan 模块中的函数进行解密 $rdcmanPath = Get-Proce…
python 命令
python.exe -m venv .venv source .venv/bin/activate # linux .venv/bin/activate.ps1 # windows python.exe -m pip install -r .\requirements.txt --proxy=192.168.0.90:17890 python -…
linq 一样使用 powershell
引用自这里 这是对应的 pdf 文件 [TOP] 数组 定义 # 定义数组 $myArray = @( “a”,”b”,”c”,”d”,”e”,”f”,”g”,”h” ) $myArray = “a”,”b”,”c”,”d”,”e”,”f”,”g”,”h” $myArray = @(25) $myArray = ,25 [int[]] $a = 1…