I got a job once by diving into a multi-kloc codebase and fixing bugs (it was open source and they had a bugtracker)
They didn't ask me to do this - I just wanted to impress them.
That was a very satisfying way to get a job, I'd be happy to do it again.