How you can make sure your job is safe in the next tech layoff: