Do your community service, though if that's what they give you. My buddy, Travis, ended up in jail because he ducked out of community service for too many unpaid skateboarding tickets in Atlanta. He spent 3 days in county, and when he got out, we threw a party and got hecka stoned and drunk. The following morning, the pigs came back trying to put him back in jail saying the warrant was still out on him to serve those 3 days, and one of the pigs caught a glimpse of a bong on the coffee table (before I promptly stood in front of his line of sight of it) when Travis opened the door while it was still chained. In the time it took for him to close and unchain the door, I quietly ran back into one of the rooms and hid the bong. I saw the one cop that saw it surveying the living room and kitchen for the bong, but he couldn't see it so they left after Travis was able to prove he'd already been in jail.
I'd probably play the crazy card if I ever landed in jail. Fuck jail.