One should always have an updated resume and membership in various professional organizations, and maintain a solid network of colleagues and friends. And have one more skill, the competition does not have.
That doesn't always work. See post #10.
Nowadays that one skill has to be willing to work for half of what you're currently making.