1. Be the change
Don't lose your temper at all. Go all Gandhi and exhibit the behavior you wish to see in the world
2. Look in a mirror
When you lose your temper, admit you're wrong. It shows what's acceptable, even though everybody makes mistakes and has bad days.
3. Be Proactive
Show how proud you are when your child's well-behaved. Positive reinforcement can move mountains.