The court heard the incident happened at Dame Street after 8pm on November 14, 2021.
Gardaí saw the accused walking down the street, shouting at people he was passing and gesturing at them.
He tried to enter a shop but was refused by security and remonstrated with them, a garda sergeant said.
Fay then went to another shop, where he went into a staff area before being removed and escorted out of the shop by gardaí. He called the garda a "scumbag, a pig and paedo" and was arrested.
Fay worked in events but had been out of work due to the pandemic. It had been an "incredibly tough time" for everyone but especially anyone in the accused's line of business, defence solicitor Colleen Gildernew said.
He was living in a boat on the Grand Canal because he could not afford to rent in Dublin.
On the night he had been at a gig, had too much to drink and was "very much worse for wear".