Skip to content

Instantly share code, notes, and snippets.

@mischief
Last active September 17, 2022 05:01
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 mischief/d00ac877d719f0f68255c7a27c40a710 to your computer and use it in GitHub Desktop.
Save mischief/d00ac877d719f0f68255c7a27c40a710 to your computer and use it in GitHub Desktop.
site
host = unix.gethostname()
c1, c2, c3 = string.byte(GetRandomBytes(1)), string.byte(GetRandomBytes(1)), string.byte(GetRandomBytes(1))
function OnHttpRequest()
Write([[<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Hello World!</title>
</head>
<body>
<h1 style='color:rgb(%d, %d, %d)'>Hallo, Welt!</h1>
</body>
</html>]] % {c1, c2, c3})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment