After Ray realizes he's stranded on the moon, he states "Now I know how Matt Damon Felt." This is a clear reference to The Martian (2015) , where Matt Damon's character was also stranded off-world.
Ray attempts to mimic the film "The Martian" by recording a diary describing his predicament.
When Ray walks on the moon, the theme from 2001: A Space Odyssey (1968) is played. *This is reminiscent of Buzz Lightyear's "To infinity and beyond" quoted by Cisco in the Flash episode Into The Speed Force (2017) which aired before this episode.
After Heywood punches Rip, he tells the press he had the wrong credentials causing all the press to show their passes. This is a direct call to the "No ticket" scene in Indiana Jones and the Last Crusade (1989) .