Another skill to pick up is to learn how to use a chain tool. One time I was mountain biking and I bashed my dérailleur on a rock, pretty much destroying it. With the chain tool, I was able to shorten the chain allowing me to bypass the useless dérailleur. I was pretty much limited to one gear but it beat the heck out of pushing it home.