I checked out remote job boards, found a couple of listings and applied. Did the interview (most of them took up to a month) and got the offer. You have to know that I have about 4 years experience coding, started while in college and have worked for a firm in my country that contracts out software devs to work as remote devs for startups abroad. So I have a lot of experience working remotely.
Oh well, one thing I try to do is study a lot. I realised even if you could program well, it pays to know the buzzwords and how things under the hood really work, and that's what normally asked during interviews. I made it a goal to read a lot of books on Javascript, HTML5 and CSS3. I recently started learning data structures and algorithms, turns out this knowledge is useful not just as a programmer(sometimes, depending on what you do) it helps you when interviewing at big companies, especially if you want to get into one of the big 4 like I do :)