Wednesday’s tragic shooting wasn’t the first time Shareef Allman snapped. His ex-wife sought a restraining order against him in 1992, accusing him of assaulting her on several occasions, including bashing her with a brass lamp and knocking her unconscious in a clash that drew the police — nearly two decades before his deadly rampage at a Cupertino cement plant

For 22 tense hours, Shareef Allman somehow eluded an army of officers, search dogs and helicopters in one of Silicon Valley’s biggest manhunts ever. He had melted into a Sunnyvale neighborhood Wednesday morning, stashing weapons along the way — hiding an assault rifle under a garbage bin and propping another against a utility box. A massive search of about 400 houses turned up nothing. Then, an hour after sunrise Thursday, Silicon Valley’s most wanted man suddenly appeared, crouching between two cars in a driveway, with a gun in his hand and a dog barking inside the house.