Skip to content

Instantly share code, notes, and snippets.

@robashton
Created July 9, 2013 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robashton/5955970 to your computer and use it in GitHub Desktop.
Save robashton/5955970 to your computer and use it in GitHub Desktop.
var http = require('http')
http.createServer(function(req, res) {
res.writeHead(200, {
'Content-Type': 'text/html',
'X-GeneratedBy': "NodeJS Bitches",
'X-MadeBy': 'An angry node developer',
'X-Extra': 'Seriously, Fuck rails. Fuck. Fuck. Fuck.'})
res.write([
'<html>',
'<body style="border: 0; margin: 0; padding: 0"><iframe src="http://typicalcowboybullshit.com/random" height="100%" width="100%" style="padding: 0; margin: 0; border: 0"></body>',
'</html'].join(''))
res.end()
}).listen(process.env.PORT || 8005)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment