海尔云悦mini n-Txx 刷华擎deskmini H470 bios方法

下载华擎 deskmini h470 BIOS 解压下载后的 bios 包 重命名为H470MSTXHE09(最后两位为版本号) 将重命名后的 bios 文件放下 fat32 U 盘中 重启进入 bios,进行 bios 升级

December 20, 2023

nmcli 添加静态路由

使用 nmcli connection modify connection_name +ipv4.routes "" 来添加静态路由。 简化版 nmcli c m connection_name +ipv4.routes "" 如果您使用 ipv4.routes 子命令,nmcli 会覆盖这个参数的所有当前设置。 要添加额外路由,请使用 nmcli c m connection_name...

April 3, 2023

macOS 13 Ventura SSH报错解决

给 ~/.ssh/config 添加以下两行 1 HostkeyAlgorithms +ssh-rsa 2 PubkeyAcceptedKeyTypes +ssh-rsa 1Host * 2 AddKeysToAgent yes 3 UseKeychain yes 4 ServerAliveInterval 60 5 HostkeyAlgorithms +ssh-rsa 6 PubkeyAcceptedKeyTypes +ssh-rsa

November 30, 2022

Go N个协程交替打印1-100

1package main 2 3import ( 4 "fmt" 5 "runtime" 6) 7 8func main() { 9 goroutine := runtime.NumCPU() 10 chanSlice := make([]chan struct{}, 0) 11 chanExit := make(chan struct{}, 1) 12 13 for i := 0; i < goroutine; i++ { 14 chanSlice = append(chanSlice, make(chan struct{}, 1)) 15 } 16 17 max := 100 18 num := 0 19 20 fmt.Println("runtime.NumCPU(): ", runtime.NumCPU()) 21 22 for i := 0;...

August 24, 2022

Intel NUC10 Hackintosh OpenCore EFI

Intel NUC10 Hackintosh OpenCore EFI OpenCore OpenCore 0.8.2 Adapted ꔷ NUC10i7FNH/FNK ꔷ NUC10i5FNH/FNK ꔷ NUC10i3FNH/FNK OS Version Tested ꔷ macOS Monterey 12.x (Default config.plist) ꔷ macOS Big Sur 11.6.x (Replace config.plist with config.BigSur.plist) ꔷ macOS Catalina 10.15.x (Replace config.plist with config.Catalina.plist) Known issue ꔷ Thunderbolt 3 Support very buggy. ꔷ Continuity features not work(EXCEPT HandOff and Universal Clipboard).

January 19, 2021

OpenCore 设置默认启动项

在启动菜单中选中默认要启动的选项,按Ctrl+Enter或Ctrl+启动项序号即可。 如下要将第 2 项 Mac 设置为默认启动项,则可以通过Ctrl+2...

December 27, 2020

黑苹果EFI分区空间占满处理方法

黑苹果 EFI 分区在更新 EFI 文件后,空间会慢慢变小,直到有一天。。。。空间被占满了。 然而,想清理下呢,也没有其它文件,只好格式化了。 搜索了好多资料,...

November 24, 2020

macOS 命令行升级

1softwareupdate --install -a

October 8, 2020

使用docker搭建transmission Client

Transmission A fast, easy, and free BitTorrent client 官网:https://transmissionbt.com/ Docker 镜像:https://hub.docker.com/r/lin...

August 14, 2020

Gio

Immediate mode GUI programs in Go for Android, iOS, macOS, Linux, FreeBSD, OpenBSD, Windows, and WebAssembly (experimental). gioui.org

July 5, 2020