.http 文件使用
使用 Visual Studio 2022 中的 .http 文件 | Microsoft Learn .http 文件语法 请求:HTTP 请求的格式为 HTTPMethod URL HTTPVersion,其中 HTTP 方法可以是 GET、POST、PUT 等,URL 是请求的目标地址,HTTPVersion 是可选的。 示例: GET ht…
|
440
|
|
750 字
|
10 分钟
pwsh 处理 yaml 文件
$ErrorActionPreference = 'Stop' $ipText = @" 10.10.103.31 10.10.103.61 "@ [string[]]$ipArry = $ipText.Split([char[]]"`r`n") | % { $_.Trim() } | ?…
|
711
|
|
103 字
|
6 分钟
.net 调用 AI 例子
#load "AppLib" #load "seqlog" // https://learn.microsoft.com/en-us/dotnet/core/extensions/artificial-intelligence?tabs=dotnet-cli // https://learn.microsof…
|
727
|
|
260 字
|
13 分钟
cisco 设置 vlan
! 打算每个端口对应一个 vlan, 接一个光猫 ! 将 4 口万兆口设置为 trunk 口,接上拨号 !接上 console 线,设备管理中看端口,9600,8,1 接入交换机 !操作时注意看前缀,> # (config), 要进入或退出至相应的模式才能操作 ! 进入全局配置模式 Switch> enalbe ! 查看 vlan 设置…
|
717
|
|
64 字
|
4 分钟
windows 11 Sandbox (沙盒) 软件界面显示乱码
https://github.com/xupefei/Locale-Emulator
|
750
|
|
6 字
|
几秒读完
docker cli 设置代理
## 创建配置文件 sudo mkdir -p /etc/systemd/system/docker.service.d sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf ## 设置代理参数 [Service] Environment="HTTP_PROXY=htt…
|
864
|
|
18 字
|
1 分钟内
pwsh 使用 RunspacePool 进行并发操作
# 创建运行空间池 $runspacePool = [RunspaceFactory]::CreateRunspacePool(1, 100) # 创建运行空间池 最大 100 个 $runspacePool.Open() $fakeIdDcit = @{} $fakeIdDcit["9D370B71F76FC2"] = 1 $…
|
812
|
|
109 字
|
6 分钟
pwsh windows 检测代理IP
$ipTxt = @" 1.1.1.1 2.2.2.2 3.3.3.3 "@ # 将 ip 文本拆分为数组 [string[]]$ips = $ipTxt.Split([char[]]"`r`n") | % { $_.Trim() } | ? { $_.Length -gt 0 } 0..19 | % { #…
|
788
|
|
36 字
|
2 分钟
nginx proxy manager bad gateway
因为腾讯云服务器上访问 https://ip-ranges.amazonaws.com/ip-ranges.json 被阻塞, 2 个方案, 修改容器的 dns 修改容器内文件 sed -i 's/.then(internalIpRanges.fetch)//g' /app/index.js https://github.com/NginxProx…
|
576
|
|
63 字
|
1 分钟内