no tricks, only a good camera and some luck are needed to get these kind of shots.
First a DSLR will greatly help as it allows for faster shutter speeds at low light without having to increase ISO settings beyond acceptable levels in regards of noise.
Then you'll need clean aircraft windows (probably the hardest thing to get in all of this).
And last but not least you'll need to cover up the camera with some dark tissue or something similar in order to avoid window reflections.
Good luck trying!
P.S.: a smooth ride helps a lot as well of course!