串流将平板作为PC第三屏
1. PC 安装 Sunshine > https://github.com/LizardByte/Sunshine 1. PC 上安装虚拟屏幕工具,我用的是 ParsecVDisplay > https://github.com/nomi-san/parsec-vdd 1. 平板上安装 moonlight > https://github.com…
wireguard
# https://github.com/wg-easy/wg-easy # 生成密码 docker run --rm -it ghcr.io/wg-easy/wg-easy wgpw '1234567' # 如果密码中的 $ 使用 $$ 转义, 返回如下 # PASSWORD_HASH='xxxxxx' v…
HeidiSQL 导出密码解密
https://www.fournoas.com/posts/how-to-recover-a-stored-password-from-heidisql/ function Decrypt { param( [string]$str ) if ([string]::IsNullOrEmpty($str)) { return ""…
Swagger 配置
# 进行参数修改 builder.Services.AddSwaggerGen(opt => {}); 修改标题 opt.SwaggerDoc("v1", new OpenApiInfo { Title = "Test01", Version = "v1", }); 在 header…
pwsh 对一组 IP 进行排序
# 将 ip 转为 int 值 function Convert-IPv4ToInt { param ( [string]$ipAddr ) $ip = $ipAddr.Split(':')[0] $ipAddress = [System.Net.IPAddress]::Parse($ip) # 获取小端序整数 $littleE…
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
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…