I learned this on camps during high school, when I had to sleep in tents with people who snored. Rather than lying there cursing their every breath, throwing things or trying to block your ears, try to breathe in time with your snoring neighbour. Their breathing is already at a sleeping pace, and it gives you something to focus on. Before you even realise it, you'll be asleep again and no harm is done.
Mokalus of Borg
PS - I'm not sure how I figured this out.
PPS - Perhaps I was just too passive to throw anything, but had to try something.