How to be secure of your employment?
Write a code so bad that nobody will want to maintain it, and thus pretend that you understand this code.
Do not work with Open Source positions