Based on Farang's location and the size of the snake I'll go with the green cat snake. Latin name Boiga cyanea.
http://www.ecologyasia.com/verts/sna..._cat-snake.htm
Venomous but rear fanged and not very aggressive, leave it alone and it won't bother you.