Given the sentence:
Now he'd done it. He hadn't even lasted two weeks. He'd be packing his bags in ten minutes. What would the Dursleys say when he turned up on the doorstep?
I guess that in this context he’d done it means “he’d been doomed.” Does do it has a meaning?