Skip to content

Instantly share code, notes, and snippets.

@vxavictor513
Last active June 17, 2025 07:35
Show Gist options
  • Save vxavictor513/5139324d1605a2ceecf03ac9474d5eab to your computer and use it in GitHub Desktop.
Save vxavictor513/5139324d1605a2ceecf03ac9474d5eab to your computer and use it in GitHub Desktop.

macOS Setup

Apps

What I use

Command-line Tools

General

Backend Development

Other Recommendations

Productivity Notes

Shortcut for Screenshot

Command + Control + Shift + 4 to snap, at the same time copy.

Read more here.

Make app switcher displays on both multiple screens

defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock

Ref: https://superuser.com/a/1625752

Temporarily disable Gatekeeper to allow third party app installs that are not allowed by Apple

sudo spctl –-master-disable # disable
sudo spctl --master-enable # re-enable

Ref: https://osxdaily.com/2015/05/04/disable-gatekeeper-command-line-mac-osx/

Open project in Xcode from command line

At the directory where your xcworkspace or xcodeproj is, run the following command.

xed .

Ref: https://stackoverflow.com/a/52739630/5366727

Open project in IntelliJ from command line

In IntelliJ, go to Tools > Create Commandline Launcher for one-time setup.

At the directory where your Java project is, run the following command.

idea .

Ref: https://stackoverflow.com/a/49819015/5366727

Known Issue: k9s cannot resolve host name through VPN

When connected to VPN, k9s might not be able to resolve private host names.

This happens when k9s is installed via Homebrew, where Cgo is disabled by default.

To overcome this, we can compile and install k9s from source using go install.

Ref: derailed/k9s#780

Docker Setup

In case Docker Desktop cannot be used (e.g. due to licence limitation), can consider using Colima to replace Docker Daemon, then Docker CLI can still be used.

Sample command to start Colima

colima start --cpu 4 --memory 8 --disk 100
@KhyeK
Copy link

KhyeK commented Aug 31, 2022

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment