A sales manager hurled drunken abuse at gardaí when they called to investigate an argument that happened during a get-together with friends at his home.
Walter Arnoldi (38) became aggressive towards officers who arrived following a row between a couple who were at his house.
Judge Carol Ann Coolican left him without a criminal record after he pleaded guilty to public order offences and made a €150 charity donation.
Mr Arnoldi, of Bremore Meadows, Hamlet Lane, Balbriggan, pleaded guilty to public intoxication and threatening, abusive and insulting behaviour.
Dublin District Court heard the incident happened on August 2 last. Gardaí were called to the accused's house at 9am.
Mr Arnoldi, who was inside, followed the officers onto the road, verbally abused them and was aggressive towards them.
He was intoxicated at the time and was arrested, a garda serageant said.
Mr Arnoldi had no previous convictions.
The night before, Mr Arnoldi's wife was away with her child and the accused had two friends over. The friends, a man and his wife, started an argument and gardaí arrived.
The accused was "stupid" in his actions towards gardaí and was "deeply ashamed", his lawyer said. He was now attending anger management.
Mr Arnoldi had gone to the local garda station three days after the incident and apologised for what happened.
He was a hard worker and was a manager with a sales company. His wife was in court with him and he was prepared to donate to a charity to avoid conviction, his lawyer said.
Judge Coolican struck the charges out after the accused made a €150 donation to the Fr Peter McVerry Trust.