For many, a layoff is a catastrophic blow to both the wallet and psyche. But for one European tech worker, getting fired twice in five months was little more than an inconvenience. The secret?