What I've seen that has worked in the past is this: Pick an open source project that is in a language that is respectable and commit to contributing to it for three or four months. Full time. Try to make sure that your written English is clear and professional in things like PRs. Try to keep your code as clean and as well tested and linted as possible. Once the core team gets to know you a bit you'll be able to reach…
Who is making $500,000 per year as a developer? That seems outlandish. Edge case-ey. Outside of maybe quants, what type of developers are pulling that kind of income?
So, the subset of developers who make this much money basically amounts to "The senior engineers, at top tech companies, such as google/FB/ect"
Which.... is less unlikely than you'd think, if you are talking about the democraphic of users who read hacker news.
500k is still definitely up there, but making even something like 250k, at any of these top tech companies, as a mid level engineer, is completely standard. I'd expect anyone who has 5 years of experience, at these types of companies to be making at least this amount.
So, within that context, the people who are making twice that, would be maybe the team leads, or possible even a bit higher ranking than that.