CuttingEdge.Conditions 替代
Ardalis.GuardClauses https://www.nuget.org/packages/Ardalis.GuardClauses
从目录还原 git 仓库
解压缩出 xxxx.git mkdir xxx git init git remote add origin xxx.git (完整路径) git pull
.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…
.http 文件使用
使用 Visual Studio 2022 中的 .http 文件 | Microsoft Learn .http 文件语法 请求:HTTP 请求的格式为 HTTPMethod URL HTTPVersion,其中 HTTP 方法可以是 GET、POST、PUT 等,URL 是请求的目标地址,HTTPVersion 是可选的。 示例: GET ht…
pwsh 处理 yaml 文件
$ErrorActionPreference = 'Stop' $ipText = @" 10.10.103.31 10.10.103.61 "@ [string[]]$ipArry = $ipText.Split([char[]]"`r`n") | % { $_.Trim() } | ?…
.net 调用 AI 例子
#load "AppLib" #load "seqlog" // https://learn.microsoft.com/en-us/dotnet/core/extensions/artificial-intelligence?tabs=dotnet-cli // https://www.bilibili.c…
cisco 设置 vlan
! 打算每个端口对应一个 vlan, 接一个光猫 ! 将 4 口万兆口设置为 trunk 口,接上拨号 !接上 console 线,设备管理中看端口,9600,8,1 接入交换机 !操作时注意看前缀,> # (config), 要进入或退出至相应的模式才能操作 ! 进入全局配置模式 Switch> enalbe ! 查看 vlan 设置…