Skip to content
Wenliang Zhang edited this page Jul 17, 2020 · 8 revisions

Disable auto launchers, such as annoying Adobe Create Cloud

Get the list.

$ launchctl list | grep adobe

To disable it.

$ launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist

To enable it.

$ launchctl load -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist

Password policy

Where is the command?

$ whereis pwpolicy
/usr/bin/pwpolicy

Wanna reset it?

$ sudo pwpolicy -clearaccountpolicies

VNC

Install VNC for Ubuntu etc. and start it. Finder -> CMD + K, launch remote desktop client with vnc://ip:port.

Microsoft Remote Desktop

Visit Microsoft to download the latest version.

ssh to github.com through proxy

$ brew install corkscrew

Edit ~/.ssh/config, and add in Github’s section:

ProxyCommand /usr/local/bin/corkscrew proxy-server-ip port %h %p

Install and codesign gdb

Brew install gcc, then codesign gdb. The last step is error-prone, read the reference carefully. The latest reference is https://sourceware.org/gdb/wiki/PermissionsDarwin.

$ brew install gdb

Even if the installation and codesign of gdb are passed, there may still be some unexpected failures. The latest try is gdb 8.2.x does not work, while gdb 8.0.1 works. gdb 8.3 works.

Use LLDB instead. Never go back to gdb on macOS.

Clone this wiki locally