Petrol generator or batteries bank. The former is not an option in a flat, though, but is the best option to withstand long electricity cuts. Neither are prohibitively expensive (at least in normal circumstances) but might be harder and harder to find.