A man who attacked two people, shoplifted and was found with an unregistered XL bully has narrowly avoided jail.