A personal trainer caught with more than €1,400 worth of cannabis after his home was searched by gardai was smoking up to 20 joints a day, a court heard.
Keith Devoy (27) had bought the cannabis in bulk and planned to share it with friends.
A court heard Devoy's problems with cannabis began follow- ing the death of his father in a road accident in 2006.
However, he is now completely clean, his barrister said.
Judge David McHugh ordered him to complete 100 hours of community service in lieu of three months in prison.
Devoy, of St Ronan's Park, Clondalkin, had admitted before Blanchardstown District Court to possession of cocaine and cannabis.
He also admitted to having cannabis for sale or supply.
Gda Marcella Shanahan said she obtained a search warrant and searched the defendant's home on January 8 last year.
During the search, Gda Shanahan found cocaine with a street value of €49 and cannabis worth €1,421.
The drugs were found in the defendant's bedroom, she said.
Gda Shanahan said Devoy admitted the cocaine was for his personal use and he had bought the cannabis in bulk to share with some of his friends.
The court heard Devoy has 79 previous convictions, mostly for road traffic offencs.
His last conviction for a drug-related matter was more than six years ago.
Defence barrister Ciaran Mac- Loughlin said Devoy was suitable for community service and was willing to complete the hours.
At one stage, the defendant was leading a "wholly unproductive life", doing nothing but sitting around with his pals and smoking up to 20 joints a day, the court heard.
His barrister said Devoy is now a qualified personal trainer and no longer takes drugs.
He is also the father of a baby girl and is focused on caring for her and being around for her.