Violent, dishonest and drug-taking defendants were among those sentenced recently at York Magistrates' Court.