I usually did the minimum required of me. While I did challenge myself and learn new things, I stuck to the easy stuff. I worked the minimum amount of time every week and shied away from taking on voluntary projects which would have made my usefulness to my employer more obvious. I got my job done in 20-30 hours, billed for 40, and went home(shitty, I know).
When times got tough for my client(after nearly 6 years) I was eventually replaced with a WiPro guy.
I could have learned C++14, but instead I stuck with what I knew. I could have learned algorithms, but I stuck with the driver/systems/embedded stuff I knew. I could have learned the security frameworks and been really valuable right now.
The last 2 years have been a time of furious catching up. I'm now being courted by FANG companies and hoping I can make the cut(I need to bump my salary to afford alimony... long story).