I just remind myself that this world has 7.5 billion people on it, and as a programmer I have a better income than the VAST majority of them.
So, there are billions of people who would love to out-compete me and take my job. I need to make sure I'm always ahead of the curve so that the legions of CS grads being pumped out of universities don't replace me.