Whenever in the City Code or in any ordinance of the City, any act is prohibited or is made or declared to be unlawful or an offense, or whenever the doing of any act is required or the failure to do any act is declared to be unlawful, where no specific penalty is otherwise provided, whoever violates any such provision shall be fined not more then five hundred dollars ($500.00) or imprisoned not more than thirty days, or both.