(u)prohibiting the setting fire to or burning any straw or other matter, or lighting a bonfire or want only discharging a fire-arm or air-gun, or letting off or throwing a fire-work, or sending up a fire balloon or rocket in or upon or within fifty feet of a street or building or the putting up of any post or other thing on the side of or across a street for the purpose of affixing thereto lamps or other contravances for illumination, except subject to such reasonable rules, as he may make in that behalf;