Penalties. Any person who violates, disobeys, omits, neglects, or refuses to comply with, or who resists the enforcement of, any of the provisions of this code, shall be subject to a forfeiture of not less than $10 and not to exceed the sum of $2,000 for each offense, together with the costs of the action, and, in default of the payment thereof, shall be imprisoned in the county jail for a period of not to exceed six months, or until such forfeiture and the subsequent costs have been paid. Each day that a violation is permitted to exist shall constitute a separate violation and be punishable as such.