分类
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

分类
mac

brew 切换 terraform 版本

安装 0.12.x 最新版

brew install terraform@0.12
分类
mac

macOS win10 + DELL U2720QM 匹配设置

U2720QM 设置

Display -> Response Time -> Fast
Smart HDR -> Desktop

macOS 设置

System Preferences -> Displays

按住 Options 点 Scaled,选择

2304 x 1296(比较舒服)介于 2k 和 1080p 之间

此时 High dynamic Range (HDR)应该是勾选状态

在 System Information -> Hardware -> Graphics/Displays 显示

Radeon Pro 560X:

  Chipset Model:	Radeon Pro 560X
  Type:	GPU
  Bus:	PCIe
  PCIe Lane Width:	x8
  VRAM (Total):	4 GB
  Vendor:	AMD (0x1002)
  Device ID:	0x67ef
  Revision ID:	0x00c2
  ROM Revision:	113-C980AL-075
  VBIOS Version:	113-C97501U-005
  EFI Driver Version:	01.A1.075
  Automatic Graphics Switching:	Supported
  gMux Version:	5.0.0
  Metal:	Supported, feature set macOS GPUFamily2 v1
  Displays:
DELL U2720QM:
  Resolution:	3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition)
  UI Looks like:	1920 x 1080 @ 60 Hz
  Framebuffer Depth:	30-Bit Color (ARGB2101010)
  Display Serial Number:	5ZG1WS2     
  Main Display:	Yes
  Mirror:	Off
  Online:	Yes
  Rotation:	Supported
  Automatically Adjust Brightness:	No
  Connection Type:	DisplayPort

Win10 设置

175% 缩放