检测局域网中 DHCP 服务器地址
McTVDHCPDiscoveryTool_0_9_1
|
0
|
|
1 字
|
几秒读完
Swagger 配置
# 进行参数修改 builder.Services.AddSwaggerGen(opt => {}); 修改标题 opt.SwaggerDoc("v1", new OpenApiInfo { Title = "Test01", Version = "v1", }); 在 header…
|
31
|
|
178 字
|
5 分钟
pwsh 对一组 IP 进行排序
# 将 ip 转为 int 值 function Convert-IPv4ToInt { param ( [string]$ipAddr ) $ip = $ipAddr.Split(':')[0] $ipAddress = [System.Net.IPAddress]::Parse($ip) # 获取小端序整数 $littleE…
|
37
|
|
28 字
|
2 分钟
windows 安装 docker 时 wsl 补丁
安装完成 docker 后无法正常工作时,可以尝试安装一下 https://github.com/microsoft/WSL/releases
|
61
|
|
30 字
|
几秒读完
ubuntu 阿里镜像源
https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11NWSsF4 https://mirrors.aliyun.com/ubuntu-releases/?spm=a2c6h.13651104.d-5263.1.631243efRiAkrx
|
68
|
|
25 字
|
几秒读完
ubuntu 下安装 nvidia 驱动
# 查看显卡型号 lspci | grep -i vga # 0000:b3:00.0 VGA compatible controller: NVIDIA Corporation GA106 [GeForce RTX 3060] (rev a1) # 查看当前可用驱动 ubuntu-drivers devices # driver : nvidia…
|
78
|
|
46 字
|
3 分钟
ssh 隧道
## 在一些临时性场合可以暂时性进行端口转发 --------------------------------------------------------------------- ## 远程端口映射至本地局域网 192.168.0.60 7893 端口 # -R 从远程主机映射至本地 # -C 使用数据压缩 # -N: 让 SSH 不执行远程…
|
77
|
|
26 字
|
2 分钟
以 TrustedInstaller 权限运行
# https://github.com/Raymai97/SuperCMD .\SuperCMD.exe /TI /Run:powershell.exe # https://github.com/mspaintmsi/superUser .\superUser64.exe /ws powershell.exe
|
87
|
|
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 第一…
|
88
|
|
27 字
|
2 分钟
设置 task 为 STA 模式
因为要运行窗口代码,必须使用 STA 模式,而有一些代码又需要 async/await 方式 一 推荐,因为可以传入一个异步函数,并可以扩展为带返回值 # 调用 await this.RunWithStaTaskAsync(this.AppRun); private async Task RunWithStaTaskAsync(Func<Ta…
|
83
|
|
159 字
|
3 分钟