ssh 隧道
## 在一些临时性场合可以暂时性进行端口转发 --------------------------------------------------------------------- ## 远程端口映射至本地局域网 192.168.0.60 7893 端口 # -R 从远程主机映射至本地 # -C 使用数据压缩 # -N: 让 SSH 不执行远程…
|
446
|
|
26 字
|
2 分钟
以 TrustedInstaller 权限运行
# https://github.com/Raymai97/SuperCMD .\SuperCMD.exe /TI /Run:powershell.exe # https://github.com/mspaintmsi/superUser .\superUser64.exe /ws powershell.exe
|
472
|
|
7 字
|
1 分钟内
linux 下关闭 usb 省电设置
# vi /etc/default/grub 修改 GRUB_CMDLINE_LINUX_DEFAULT 这行 GRUB_CMDLINE_LINUX_DEFAULT="quiet usbcore.autosuspend=-1" 然后执行更新并重启 # update-grub # grub-mkconfig # reboot 第一…
|
384
|
|
27 字
|
2 分钟
设置 task 为 STA 模式
因为要运行窗口代码,必须使用 STA 模式,而有一些代码又需要 async/await 方式 一 推荐,因为可以传入一个异步函数,并可以扩展为带返回值 # 调用 await this.RunWithStaTaskAsync(this.AppRun); private async Task RunWithStaTaskAsync(Func<Ta…
|
312
|
|
159 字
|
3 分钟
CuttingEdge.Conditions 替代
Ardalis.GuardClauses https://www.nuget.org/packages/Ardalis.GuardClauses
|
326
|
|
9 字
|
几秒读完
从目录还原 git 仓库
解压缩出 xxxx.git mkdir xxx git init git remote add origin xxx.git (完整路径) git pull
|
644
|
|
24 字
|
几秒读完
.net 健康度检查
[官方手册] https://learn.microsoft.com/zh-cn/aspnet/core/host-and-deploy/health-checks?view=aspnetcore-9.0 [一个第三方库,包括各种服务的检测] https://github.com/Xabaril/AspNetCore.Diagnostics.Hea…
|
324
|
|
773 字
|
8 分钟
开发板资料、固件
开发板资料、固件 https://www.t-firefly.com/doc/download/172.html
|
460
|
|
18 字
|
几秒读完
.http 文件使用
使用 Visual Studio 2022 中的 .http 文件 | Microsoft Learn .http 文件语法 请求:HTTP 请求的格式为 HTTPMethod URL HTTPVersion,其中 HTTP 方法可以是 GET、POST、PUT 等,URL 是请求的目标地址,HTTPVersion 是可选的。 示例: GET ht…
|
315
|
|
671 字
|
8 分钟