This little piece of software allows you to flash an NodeMCU over an web interface and also configure wifi.
I used this for all my new NodeMCUs to preflash them only once After falshing this firmware you can upload any bin file for a custom firmware!