Blog
Notes on keeping a developer Mac fast and tidy: freeing disk space, clearing Xcode leftovers, busy ports and dev servers, and the tools behind CCToolify.
Port 3000 already in use? Find and free it on macOS
Find which process is using a port on your Mac with lsof, stop it safely with kill, and fix the cases where the port won’t free up: Docker, AirPlay, root.
Clear Xcode DerivedData and old simulators safely
Which Xcode folders are safe to delete, with the commands for DerivedData, simulator devices and runtimes, device support files, and what to keep from Archives.
localhost vs 0.0.0.0: who can reach your dev server?
What 127.0.0.1 and 0.0.0.0 mean for your dev server, how to check what each port on your Mac listens on, and how to keep a server to your Mac only.
How to see which apps connect to the internet on your Mac
Use Activity Monitor, nettop and lsof to see which apps on your Mac connect to the internet, how much they send, and where the built-in tools stop.
How to block an app from the internet on your Mac
What the macOS firewall, /etc/hosts and pf can and can’t block, and what it really takes to stop one app on your Mac from connecting to the internet.
How to free up disk space on a Mac used for development
Where Xcode, simulators and package managers hide gigabytes on a developer Mac, what is safe to delete, and how to clear it.