A man has been accused of throwing a hatchet at a garda car, smashing one of its windows, in an act of "extreme violence" outside his home.
Michael O'Leary (38) is also accused of unlawful possession of two knives during the alleged confrontation.
Judge John Cheatle granted him bail at Dublin District Court.
Mr O'Leary is charged with possession of a hatchet with intent to cause injury and throwing it a garda car, criminal damage to the vehicle and unlawful possession of two knives.
The offences are alleged to have happened at Mourne View, Skerries, in the early hours of yesterday.
Garda David Woods said he was objecting to bail due to the seriousness of the charges, adding that there were more to be brought.
The case arose from a "viol- ent and serious incident" involving alleged damage to a garda car and an attempt to assault a garda, he said.
Mr O'Leary addressed the judge, saying "this is a year of harassment" by the gardai. He said the charges were "stupid" and he wanted them dropped.
Judge Cheatle granted Mr O'Leary bail of €150 with no cash lodgement required.
The garda sought a curfew, but defence solicitor Fiona D'Arcy said this would be "unduly onerous".
Gda Woods said there were allegations of "extreme viol- ence" and a curfew would be in the public interest.
The judge said he thought it would be wise to be inside at night during the current crisis and suggested a 10pm to 6am curfew before reducing that to 11pm to 6am at Ms D'Arcy's request "in case restrictions are lifted" during the summer.
The accused is to be of good behaviour and of sober habits in public under the bail terms.
Gda Woods also asked for a condition that he does not carry knives or sharp objects in public, but the judge said this would be covered by other terms.
He ordered disclosure of prosecution statements to the defence and remanded Mr O'Leary on bail until September.