In addition to seconding nonviolent communication, cognitive behavior therapy techniques are pretty good - basically mindfulness exercises and introspection. If you want to change how you respond to certain situations (e.g. times when you get angry, or times when you have an opportunity to do something nice), you can start by practicing awareness of those situations, e.g. by keeping a pencil and piece of paper in your pocket and making a check mark when the situation occurs.
If it's worth saying, but not worth its own post (even in Discussion), then it goes here.