The ex-convict the NYPD says fatally gunned down an officer in the Bronx on Wednesday had nine months earlier posted a profanity-laced video on Facebook inveighing against the police and the criminal justice system.

In his video, titled “Mad as hill,” Alexander Bonds — who was on parole and once served time in Attica — claims that a police officer went unpunished for a rape, jailers frame inmates for murder and pit prisoners against one another, and guards brutalize with impunity.

People “ain’t takin’ it no more, Mr. Officer. I’m here to tell you, man,” Bonds said in the video, adding: “I want justice. It’s time for people to wisen up . . . Wake up, wake up.”

Just after midnight Wednesday, Bonds, 34, shot NYPD Officer Miosotis Familia, 48, a veteran of the department for more than a decade and the mother of three children, as she sat in a police vehicle, police said. He then was killed by a police officer after Bonds brandished the gun during a confrontation, police said.

Bonds’ adulthood was spent cycling in and out of handcuffs, jail, parole and prison stints, including at the notorious Attica Correctional Facility, according to records and an NYPD official. His convictions included selling drugs in the Bronx and felony first-degree robbery in Syracuse.

According to an NYPD official who declined to be identified, Bond violated parole in 2006, and after being paroled again, the only contact he had with police in New York City was for violation summonses, for public urination and alcohol offenses.

advertisement | advertise on newsday

The official said Bonds’ earlier city record showed he was arrested in Queens in 2001 and charged with assaulting a police officer, apparently after a party. He also had a 2000 arrest for criminal possession of marijuana and two minor arrests for drug sales in 2001, the official said. The dispositions of those cases were not immediately available Wednesday.

In 2013, Bonds was paroled — and was subject to supervision until next May, according to state prison records.

Bonds, who in the video said he has a daughter, was seen drinking outside a local bodega the night before the shooting, said Alvaro Kidd, 33, who said he was Bonds’ neighbor.

In the hours after the shooting, police surrounded Bonds’ apartment building in the Foxhurst section of the Bronx as detectives and a crime scene unit searched his home. Police tape cordoned off the building, which has a bright red stoop and door, as neighbors stood outside and waited on the corner.

People who knew Bonds visited his home Wednesday, saying they were bewildered that he is accused of killing an officer.

“If he did something that warrants judgment for this, call a spade a spade, but now it’s a surprise to me,” said his uncle Jamel Bailey, 44.

Jenna Johnson, who arrived with Bailey and described herself as a friend of Bonds, said she didn’t know him to be a violent person. The Facebook video, she said, was just hyperbole, an outlet to vent.

“Everybody has their moments,” Johnson said. “You rant. That’s it.”

advertisement | advertise on newsday

With Anthony M. DeStefano