ESP8266: Controlling a buzzer

How to control a passive buzzer module using an ESP8266 and the Arduino core.