Months · der
The last four months, and like every month: der.
Containers
Die Dose, die Tüte, die Schüssel, but der Karton.
Building materials · der
Four building materials, all der: der Beton, der Ziegel, der Stahl, der Stein.
Things you make or take (machen)
You machen (take) a break, (make) a mistake, (take) a photo, (go on) a trip: die Pause, der Fehler, das Foto, der Ausflug.