- Get provably good at something.
- Find a company that needs that something really bad.
Notice that you don't just need to be good. You need proof. I'd strongly recommend a fully functioning site that does something undeniably cool and that you built yourself from top to bottom. I'd strongly recommend not just building a bunch of open source stuff that's up on Github.
Another form of proof that's nice to have is happy clients & bosses. You want their CTO to be talking to your old CTO over drinks and have your ex-boss mention how he once had to lay off a team of 12 developers when they ran out of money, but they needed to keep one guy around to finish the thing up, and how there was this one guy on the team who was clearly the guy to be that guy. And if you're looking to do this thing we've been talking about, which sounds hard, and you need somebody to build a team around, here's his email address.
Work for lots of places, build good stuff, and make sure it's always recognized and visible. Then build more recognizable, visible stuff on the side that can only be attributed to you.
Then go ask for that rate.