Instructables suggests using a fork to hold the potato.
When shredding, stick a fork about a half an inch into the potato.
Then, rotate the fork and make the grater parallel with the fork for the last bit of potato.
This trick also works for onions (and probably other vegetables too).