Most of these things most of us are doing already, but number 3 is something that very few people remember to do, which is a shame, in my opinion:
"Turn “Work” Connections Into “Personal” Connections"
https://www.business2community.com/human-resources/how-to-avoid-being-laid-off-02131907