Like the concept of "open source as an interview"
But you could do it the other way around as well. Do some open source work for a company you're interested in joining/contracting for. For example, a developer wrote an iOS client library for our payments API. https://github.com/balanced/balanced-ios