How to turn off annoying notifications in macOS

Tired of never-ending notifications? Here is how to turn them off on Apple computers.