The comment above is bad advice.
The key here is to get laid off when you want it! Make mistakes on purpose. Go slow. Ask for clarification on everything. Show no initiative at all. Embarrass your boss at every opportunity.
Here you do not want to do anything to get fired. Just enough to get laid off.
It su-ks that some people want to work there and get laid off while others are at 1/4 speed and just can't get laid off.
I worked until I was ready to get out. Then I worked really hard to get the severance. They eventually gave it to me. The difference was a 6-digit check versus a cake and a small token-gift. I am glad I took the check!!!