ThinkPad X390笔记本折腾OpenWrt记录
基本信息 笔记本电脑型号: ThinkPad X390 20Q0A00BCD, 自带有线网卡(需mini rj45转rj45转接线), 无线网卡和4G上网模块 另外配置USB有线网卡, 芯片型号RTL8152 镜像: ImmortalWrt 24.10 安装配置记录 安装 镜像下载链接: https://downloads.immortalwrt.org/releases/24.10.1/targets/x86/64/immortalwrt-24.10.1-x86-64-generic-squashfs-combined-efi.img.gz 镜像解压后用rufus刷写到U盘, 插入电脑关闭SecureBoot后U盘启动 基本配置 使用笔记本屏幕进入终端 passwd命令创建密码 修改/etc/config/network, 修改eth0为wan, eth1为lan(eth0为笔记本自带有线网卡, eth1为USB有线网卡, OpenWrt默认eth0为lan, eth1为wan) 由于作为子路由, wan和lan配置默认即可 由于ImmortalWrt相比原版镜像多了一些内置驱...
个人sing-box配置
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120{ "dns": { "servers": [ { "tag": "remote", "address": "https://1.1.1.1/dns-query", "detour": "select" }, ...
在U盘创建Windows PE
参考链接: https://learn.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive?view=windows-11 https://learn.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/winpe-adding-powershell-support-to-windows-pe?view=windows-11 https://learn.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/winpe–use-a-single-usb-key-for-winpe-and-a-wim-file—wim?view=windows-11#option-1-create-a-multiple-partition-usb-drive 准备工作 下载 Windows ADK 10.1.26100.2454 (2024 年 12...
Windows Generic Retail/OEM/MAK Key
https://massgrave.dev/hwid Windows 10/11 Product Names EditionID Generic Retail/OEM/MAK Key Education Education YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY Education N EducationN 84NGF-MHBT6-FXBX8-QWJK7-DRR8H Enterprise Enterprise XGVPP-NMH47-7TTHJ-W3FW7-8HV2C Enterprise N EnterpriseN 3V6Q6-NQXCX-V8YXR-9QCYV-QPFCT Enterprise LTSB 2015 EnterpriseS FWN7H-PF93Q-4GGP8-M8RF3-MDWWW Enterprise LTSB 2016 EnterpriseS NK96Y-D9CD8-W44CQ-R8YTK-DYJWX Enterprise LTSC 2019 EnterpriseS 43TBQ-NH92J-XKT...
JavaScript预览采集卡画面
采集卡除了用于双机推流直播外, 还需要充当副屏使用 obs可以捕获采集卡画面, 但是略吃性能, 跑在核显笔记本上风扇就开始转起来了 由于采集卡会被识别成USB摄像头, 所以尝试通过JavaScript调用摄像头在浏览器输出画面 代码如下 123456789101112131415161718192021222324<!DOCTYPE html><html lang="en"><head> <meta charset="utf-8"> <title>camera</title></head><body> <video id="preview" autoplay controls></video></body><script>navigator.mediaDevices.getUserMedia({ video: { width: 1920, h...
修复Win10更新KB5034441的0x80070643错误
原理是增加WinRE分区大小 参考https://support.microsoft.com/zh-cn/topic/kb5028997-%E6%89%8B%E5%8A%A8%E8%B0%83%E6%95%B4%E5%88%86%E5%8C%BA%E5%A4%A7%E5%B0%8F%E4%BB%A5%E5%AE%89%E8%A3%85-winre-%E6%9B%B4%E6%96%B0%E7%9A%84%E8%AF%B4%E6%98%8E-400faa27-9343-461c-ada9-24c8229763bf 脚本应以管理员身份运行, 内容如下 123456cd /d "%~dp0"reagentc /disablediskpart /s diskpart_script.txt > diskpart_log.txtreagentc /enablereagentc /infopause diskpart_script.txt内容如下 1234567891011121314list diskREM == 需要修改为安装Windows的磁盘sel disk 0...
macOS下010editor过期处理
macOS下: /Users/xxx/.config/SweetScape/010\ Editor.ini为注册相关文件 /Users/xxx/Library/Application\ Support/SweetScape/010\ Editor/010Editor120.cfg为配置文件 删掉上述两个文件会恢复到原来的状态, 不过文件历史记录和插件安装记录都会丢失 参考链接: https://blog.csdn.net/hejinjing_tom_com/article/details/90765196
Windows同一网卡中DHCP与静态IP共存的方法
系统要求 Windows10 1703及以上版本(网络上查的, 自己没有验证) 原理 1703 创造者更新里微软悄悄地在netsh set interface命令里加了一个属性dhcpstaticipcoexistence, 把这个属性设为enabled就可以在一张网卡上同时配置一个 DHCP 的 IP 和多个静态 IP. 而在以往的 Windows 里情况是: 要么只用一个 DHCP 的 IP, 要么所有的多个 IP 都必须是静态的. 简单来讲就是利用netsh命令来实现的 具体方法 1234567891011# 命令须在管理员权限下运行netsh int ipv4 set interface "以太网" dhcpstaticipcoexistence=enable # 启用DHCP与静态IP共存, 看选项应该能理解意思: dhcp static ip coexistence# 具体修改时可能要修改网络连接名称, 即"以太网"netsh int ipv4 add address [name=]"以太网" [addr=]...
VSCode中添加Developer PowerShell for VS2019和Developer Command Prompt for VS2019的方法
无废话, 直接上配置文件, 添加到setting.json 1234567891011121314151617181920"terminal.integrated.profiles.windows": { "Developer PowerShell for VS 2019": { "path": "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe", "args": [ "-noe", "-c", "Import-Module 'C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/Tools/Mi...












