A brutish thug attacked another man at the bottle- deposit machine in an Ozone Park supermarket, authorities said.

David James, 36, punched the victim on the left side of the face during the fracas at Farmboy Produce Market on Rockaway Boulevard near 128th Street at 11:40 a.m. Sept. 7, court records say.

James was arrested and charged with assault, said a spokeswoman for DA Richard Brown.

***

A violent thug pummeled a man in Sunnyside, authorities said.

“I’m going to break your legs,” Jairo Solis, 41, snarled at the victim as he attacked him in front of a building on 47th Street at 5:30 p.m. Sept. 12, court papers claim.

The victim was taken to a hospital after he was punched in the head and fell to the ground, injuring his left arm and finger, cops said.

Solis was arrested and charged with assault.

Sources said it’s unknown if he and the victim knew each other.

***

An unlicensed drunken driver plowed his car into three members of one family in Jamaica, authorities said.

Kevin Gibbs, 46, was behind the wheel of a 2007 Chrysler when he allegedly lost control and hit a man, a woman and their 13-year-old son as they stood next to their vehicle on 160th Street near 107th Avenue at 9 p.m. Sept. 12.

The family was rushed to a local hospital to be treated for various injuries.

A boozy Gibbs drove off, but was nabbed four blocks away and charged with DWI and leaving the scene of an accident, cops said.

Brooklyn

* An armed thug fired a shot as he robbed a Greenpoint Dunkin’ Donuts.

The suspect flashed a silver gun in the shop on McGuinness Boulevard near Freeman Street at about 12:15 a.m. Sunday.

He fired a round at the shelf behind a worker, who was not injured, and then fled with an undisclosed amount of cash.