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…
|
501
|
|
119 字
|
6 分钟
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…
|
289
|
|
134 字
|
7 分钟
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…
|
996
|
|
186 字
|
9 分钟
WPF 设置控件设计时背景
<d:DesignerProperties.DesignStyle> <!-- 或是指定 d:DesignStyle="{StaticResource MyDesignStyle}" --> <Style TargetType="UserControl"> <Sett…
|
302
|
|
7 字
|
1 分钟内
LINQPAD 加入日志功能
https://github.com/lethek/Serilog.Sinks.LINQPad async Task Main(string[] args) { // #load "LogLib" , 可以作为库引入 ExceptionlessClient client = EnableDefaultExceptionless(…
|
296
|
|
161 字
|
8 分钟
adb 设置全屏沉浸命令
# 沉浸式状态栏 导航栏 adb shell settings put global policy_control immersive.full=* # 沉浸状态栏: adb shell settings put global policy_control immersive.status=* # 沉浸导航栏: adb shell settings…
|
439
|
|
23 字
|
1 分钟内
在 Hyper-V 中运行 windows 容器
打开 windows 下的嵌套虚拟化功能 Set-VMProcessor -VMName <VMName> -ExposeVirtualizationExtensions $true https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/user-guid…
|
595
|
|
30 字
|
几秒读完
adb 读取 android 剪贴板
https://github.com/majido/clipper # 下载并安装 clipper.apk # 启动应用,新版本中应用置前才能使用 .\adb.exe shell am start ca.zgrs.clipper/.Main # 复制 .\adb.exe shell am broadcast -a clipper.get # 这是粘…
|
419
|
|
19 字
|
1 分钟内
centos 下使用 powershell 备份 pg 数据库
调用 pg_dump 枚举出所有库后进行备份,也可以使用 pg_dumpall 进行全库备份 # 简单一点处理 $env:PGPASSWORD = "postgres" .\pg_runtime\pg_dump.exe -U postgres -h localhost -p 5432 -F t -b -v -f newpaas_…
|
318
|
|
96 字
|
4 分钟