I try and keep around foods I can eat in "unlimited" portions and that will curb appetite. Apples, melon, cut veggies, etc.
If I have a craving for something horrible I don't deny myself, I just have a small amount of it. If you're starving and are pining for something then that's where you'll get into trouble.
I'm a snacker, I always have food out, but if I take the time to make sure the healthy items are prepped and easy to get to then that's what I'll eat. I make the 'bad' stuff a pain in the butt to get to. If I want cookies I'm not going to make them from scratch on a whim, so I'll eat that greek yogurt in the fridge instead.
My biggest downfall was soda. I gave it up! It took forever but I feel like I just gave up smoking or alcohol or something. It was one of things where I'd have a glass of diet coke and then absolutely felt I needed something super sweet, or super salty, and more soda. I just had to have it, it was insane.
If I'm not drinking enough water I'll also eat more. Water gives me something to do (which sounds stupid haha) and keeps me from thinking I'm hungry or not. Many times I'm just dehydrated and I mistake those headaches or rumblings for needing to eat, which isn't correct.