macOS: Disable charger plug in sound
By default macOS does a small chiming sound whenever you plug the charger in. If you often have to use your laptop in environments that call for silence, you may want to turn it off.
defaults write com.apple.PowerChime ChimeOnNoHardware -bool true && killall PowerChime
To reenable it, you can flip the boolean value and run the same snippet.