I had some cabinet doors that wouldn't stay shut, so why not print some quick little magnetic stoppers and save a trip to the hardware store?
These work with 3mm x 6mm magnets. I printed the model using Fillamentum 98A Flexfill (Pistachio) and also used some metal thumbtacks I had around, although you could simply use two of these stoppers back to back for twice the holding strength!
Glued with E6000 adhesive. I made a little video about it on Youtube.