How do I overcome all the negative thoughts in my mind?

All humans have a tendency to ruminate more on bad experiences than positive ones. Take yourself as an example. Last night, before you went to bed, were you thinking of all the things you crossed...