The 2008 crash wiped out the educational software company I worked at. I started freelancing then and found plenty of work, again not sexy work, no foosball or free lunches, but steady and sometimes interesting work.
Probably too late now with layoffs well underway, but I advise learning business domains (logistics, marketing, etc.) and getting expert with relational databases, which sit at the core of most business/enterprise systems. My Oracle and SQL Server background saved me from unemployment more than once. I have also found that my background in system administration, now mostly in the cloud, can keep me going.
These periodic busts always hit startups and unprofitable companies hardest. And they hit developers who have limited and/or narrow experience because those developers will have the most competition.
Pre-owned computer hardware will become increasingly cheap, so I plan to cut my reliance on cloud hosted servers, etc. The internet is likely to become less reliable due to technical and political issues.