mastubation. Other than that, I don't know. Maybe starve yourself so your body has something more important to crave (food) than getting off.
Really though, I don't see why people think whacking off is so shameful. It's safer than having sex with a bunch or people, it doesn't cost you anything, and you know what you like so its a good time.