If I had that amount of money then I would have done the following :-
1.) 15% of it I would give as a donation to child orphanage
2.) 15% to code.org so that they can promote Computer Science among Kids and other non-cs students.
3.) 5% to each MIT Open Course ware and NPTEL. They have help me a lot by making video tutorials and they really work very very hard whilst maintaining the quality.
4.) I would buy a moderately big villa with a garden. (I am not a fan of Car and so I don't want one)
5.) After the villa is done if I still have money then I would open an institute and teach Computer Science, programming to the local and poor students(won't take any money from them) who can't always afford to pay for high speed internet and books, (I would teach others who are financially stable and in that case I will take money from them to teach them

). I have a long lasting wish to spread the true essence of Computer Science and its beauty.
Well This is just a wish though. I will never have that much money at once unless a rich noble person makes me his/her heir.