Low-power Supply
See this weblog post.
Note that these files are provided AS IS. No claim is made that the circuit described and documented with the attached files is suitable or safe for any purpose. Connecting an electrical circuit directly to AC mains carries serious risks and can have very grave consequences. You're on your own if you decide to use this information in any way, and you have the full responsibility of taking all necessary precautions.