Worked as expected. Only thought would be shortening the "shortened" URL? I'm making some assumptions about what you're doing here but having 10 chars, assuming only A-Z, 0-9, (36 possible chars), gives the capacity for an unnecessarily large number of snippets.
Unless I'm half-awake at the moment, a 5 char string still yields more than 60 million possibilities, and shaves 5 chars off the URL for twitter etc.