When I interviewed at Google they told me to come back when I had more open source contributions. I already had hundreds of thousands of lines in a prominent open source systems project at the time, so they must really want a lot.
The hiring bar at these places is pretty astronomical. Realistically it’s going to be well out of reach for a majority of even the very best programmers in the world.