分类
mac

mac 鼠标指针慢

接了外接的 usb 鼠标后,会出现拖动无力的情况

重置NVRAM 或 PRAM 之后,鼠标非常顺畅

OPTION+Command+P+R+POWER

Option-Command-P-R: Reset NVRAM or PRAM. If your Mac is using a firmware password, it ignores this key combination or starts up from macOS Recovery.

https://support.apple.com/en-us/HT201255

打开 System Report => 图像显示, 发现
UI Looks like: 2560 x 1440 @ 29.00Hz
想办法证它显示 4k 60Hz
下载 SwitchResX4.zip,选 2560x1440x60Hz 在 DELL U2720QM Display 效果最好

分类
mac

macOS 触控板

三指拖拽
https://support.apple.com/en-us/HT204609

分类
mac

microsoft desktop client

For mac user Install Microsoft Remote Desktop. https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-clients

beta version

https://install.appcenter.ms/orgs/rdmacios-k2vy/apps/microsoft-remote-desktop-for-mac/distribution_groups/all-users-of-microsoft-remote-desktop-for-mac

分类
mac

macOS 路由管理

osx添加与删除静态路由

sudo route -n add -net 10.10.1.0/24 10.10.1.2
sudo route -n delete -net 10.10.1.0/24 10.10.1.2

清除路由

You need to flush the routes . Use route -n flush several times . Afterwards add your routes with route add. restart network

print routes

netstat -rn
分类
mac

mac 查看端口占用

docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:8080: bind: address already in use.
ERRO[0000] error waiting for container: context canceled
lsof -n -i4TCP:8080 | grep LISTEN
main    30863 jpuyy   14u  IPv6 0xe7a300fd0dafc76f      0t0  TCP *:http-alt (LISTEN)
jpuyy       30863   0.0  0.0  5014020  10856 s010  S+    3:22PM   0:00.29 /var/folders/d7/s1_bmdw95gg8grv857tkvqmw0000gp/T/go-build454434651/b001/exe/main all