Thousands of tickets handed out to homeless