西维蜀黍

【macOS】维护

重置SMC

https://support.apple.com/zh-cn/HT201295

  ...


【Docker】Docker Machine

What’s the difference between Docker Engine and Docker Machine?

When people say “Docker” they typically mean Docker Engine, the client-server application made up of the Docker daemon, a REST API that specifies interfaces for interacting with the daemon, and a command line interface (CLI) client that talks to the daemon (through the REST API wrapper). Docker Engine accepts docker commands from the CLI, such as docker run <image>, docker ps to list running containers, docker image ls to list images, and so on.

  ...


【VM】VirtualBox

Observing Existing Virtual Machines

$ VBoxManage list vms
"default" {48f22168-64fb-4ebd-85c4-d6e2a753ca5a}
"mymachine" {1e49ad7e-1c9f-4ae2-bcf3-236dc94c258a}

To view the VMs that are running at the moment,

$ VBoxManage list runningvms
"default" {48f22168-64fb-4ebd-85c4-d6e2a753ca5a}
  ...


【macOS】删除默认输入法

For macOS 10.8 and later:

  1. Change the current input source to your custom keyboard layout.
  2. Open ~/Library/Preferences/com.apple.HIToolbox.plist (in 10.9) or ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist (in 10.8 and earlier). You can convert the plist to XML with plutil -convert xml1.
  3. Remove the input source or input sources you want to disable from the AppleEnabledInputSources dictionary. If there is an AppleDefaultAsciiInputSource key, remove it.
  4. Restart.
  ...


【macOS】开机启动项

Folder Usage
/System/Library/LaunchDaemons Apple-supplied system daemons
/System/Library/LaunchAgents Apple-supplied agents that apply to all users on a per-user basis
/Library/LaunchDaemons Third-party system daemons
/Library/LaunchAgents Third-party agents that apply to all users on a per-user basis
~/Library/LaunchAgents Third-party agents that apply only to the logged-in user
  ...