分类: 学习

97 篇文章

Playwright 批量下载 google drive 文件
async System.Threading.Tasks.Task Main(string[] args) { var app = CreateApp(args); var logger = this.GetLogger(app); var desktop = System.Environment.GetFolderPath(Environment…
c# 调用 Playwright 例子
linqpad 代码 // 手册 https://playwright.dev/dotnet/docs/actionability async System.Threading.Tasks.Task Main(string[] args) { var app = CreateApp(args); var logger = GetLogger(app…
adb 查询手机信息
# 显示当前 ip .\adb.exe shell ip addr show wlan0 10.168.90.72 link/ether 为当前 MAC 地址 brd 为当前广播地址 # 显示外网 ip .\adb.exe shell curl -s http://members.3322.org/dyndns/getip .\adb.exe sh…
WPF 设置控件设计时背景
<d:DesignerProperties.DesignStyle> <!-- 或是指定 d:DesignStyle="{StaticResource MyDesignStyle}" --> <Style TargetType="UserControl"> <Sett…
LINQPAD 加入日志功能
https://github.com/lethek/Serilog.Sinks.LINQPad async Task Main(string[] args) { // #load "LogLib" , 可以作为库引入 ExceptionlessClient client = EnableDefaultExceptionless(…
adb 设置全屏沉浸命令
# 沉浸式状态栏 导航栏 adb shell settings put global policy_control immersive.full=* # 沉浸状态栏: adb shell settings put global policy_control immersive.status=* # 沉浸导航栏: adb shell settings…
在 Hyper-V 中运行 windows 容器
打开 windows 下的嵌套虚拟化功能 Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/user-guid…
使用 minicap 推流说明
使用 shell getprop ro.product.cpu.abi 检测手机 cpu 型号 使用 shell getprop ro.build.version.sdk 查询系统 sdk 版本 根据 cpu 从 Docs\ReleaseFolder\usr\minicap 中 rebuilt 中得到对应的 minicap 文件 根据型号从 Doc…
使用 adb 输入中文
https://github.com/senzhk/ADBKeyBoard .\adb -s R58M20XNBKF shell ime enable com.android.adbkeyboard/.AdbIME .\adb -s R58M20XNBKF shell ime set com.android.adbkeyboard/.AdbIME …