Online Resilience