ne02ptzero.me

my old website
Log | Files | Refs | LICENSE | git clone https://git.ne02ptzero.me/git/ne02ptzero.me

commit 8158b4ea2c080a1b2fddf4dcd652fedc1b76be42
parent eaf344981bd00e1f0909351fb1e1bdd499fabdc9
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon,  4 Jun 2018 20:37:34 +0200

FIX: Github to GIT link

Signed-off-by: Ne02ptzero <louis@ne02ptzero.me>

Diffstat:
Mmain.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.js b/main.js @@ -345,12 +345,12 @@ $(function () { var html = [ "Phew, that's done.^500\nNow let's code the site.^1000", "Machine,^500\n\nPls make website,^500\n\nall responsive like,^500\nw/ BIG pictures ooo^500,\nuse my fav fonts^1000,\nalso fancy menus with whoosh on,^500\nload fast pls^200\n\nThanks,\nHuman\n\n^1500PS no bugs :)^500\n^500\n^500\n^1500.^1500.^1500.^2000\n\nDoesn't work?\n\n^1000Damnit.", - '<!DOCTYPE HTML>\n<html lang="en">\n <head>\n <!-- CSS Declaration -->\n <link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">\n <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">\n <link href="style.css" rel="stylesheet">\n\n <!-- JS import -->\n <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="js/script.js"></script>\n\n <!-- META Declaration -->\n <meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui">\n <meta name="description" content="Another useless website.">\n <meta name="author" content="Louis Solofrizzo">\n <meta name="keywords" content="Louis,Solofrizzo,Ne02ptzero,illuminati">\n <meta charset="utf-8">\n <title>Louis</title>\n </head>\n <body>\n <div id="contact">\n <h1>Louis</h1>\n <a href="https://github.com/ne02ptzero/"><i class="fa fa-github"></i></a>\n <a href="http://twitter.com/ne02ptzero"><i class="fa fa-twitter"></i></a>\n <a href="cv.pdf"><i class="fa fa-file-pdf-o"></i></a><br /><br />\n <a class="mail" href="mailto:louis@ne02ptzero.me">louis@ne02ptzero.me</a>\n </div>\n </body>\n</html>\n<!-- ^^^^^ Website of the year. ^^^^^^ ^2000-->\n<!-- Wait, you can\'t see it ! ^500-->\n<!-- Give me a minute ... -->' + '<!DOCTYPE HTML>\n<html lang="en">\n <head>\n <!-- CSS Declaration -->\n <link href="http://fonts.googleapis.com/css?family=Open+Sans:300" rel="stylesheet" type="text/css">\n <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">\n <link href="style.css" rel="stylesheet">\n\n <!-- JS import -->\n <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>\n <script src="js/script.js"></script>\n\n <!-- META Declaration -->\n <meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui">\n <meta name="description" content="Another useless website.">\n <meta name="author" content="Louis Solofrizzo">\n <meta name="keywords" content="Louis,Solofrizzo,Ne02ptzero,illuminati">\n <meta charset="utf-8">\n <title>Louis</title>\n </head>\n <body>\n <div id="contact">\n <h1>Louis</h1>\n <a href="https://git.ne02ptzero.me"><i class="fa fa-git"></i></a>\n <a href="http://twitter.com/ne02ptzero"><i class="fa fa-twitter"></i></a>\n <a href="cv.pdf"><i class="fa fa-file-pdf-o"></i></a><br /><br />\n <a class="mail" href="mailto:louis@ne02ptzero.me">louis@ne02ptzero.me</a>\n </div>\n </body>\n</html>\n<!-- ^^^^^ Website of the year. ^^^^^^ ^2000-->\n<!-- Wait, you can\'t see it ! ^500-->\n<!-- Give me a minute ... -->' ]; var html2 = ["\n<!-- Muuuuch better. ^2000What a beautiful site. ^1500Could use some more style though. -->"]; -var o_html = '<h1><span class="small-title">0x1</span> Louis</h1><a href="https://github.com/ne02ptzero/"><i class="fa fa-github"></i></a><a href="http://twitter.com/ne02ptzero"><i class="fa fa-twitter"></i></a><a href="cv.pdf"><i class="fa fa-file-pdf-o"></i></a><br /><br /><a class="mail" href="mailto:louis@ne02ptzero.me"><i class="fa fa-envelope little"></i>louis[at]ne02ptzero[dot]me</a><br /><a href="public.key"><i class="fa fa-lock little" aria-hidden="true"></i>GPG Public Key</a><br /><a href="https://webchat.freenode.net/"><i class="fa fa-comment little"></i>#freenode/Ne02ptzero</a>'; +var o_html = '<h1><span class="small-title">0x1</span> Louis</h1><a href="https://git.ne02ptzero.me"><i class="fa fa-git"></i></a><a href="http://twitter.com/ne02ptzero"><i class="fa fa-twitter"></i></a><a href="cv.pdf"><i class="fa fa-file-pdf-o"></i></a><br /><br /><a class="mail" href="mailto:louis@ne02ptzero.me"><i class="fa fa-envelope little"></i>louis[at]ne02ptzero[dot]me</a><br /><a href="public.key"><i class="fa fa-lock little" aria-hidden="true"></i>GPG Public Key</a><br /><a href="https://webchat.freenode.net/"><i class="fa fa-comment little"></i>#freenode/Ne02ptzero</a>'; var file = '#include <netinet/in.h>\n#include <sys/socket.h>\n#include <sys/stat.h>\n#include <sys/types.h>\n#include <unistd.h>\n#include <stdlib.h>\n#include <fcntl.h>\n#include <stdio.h>\n#include <string.h>\n\nint main(void) {\n int c_sock, n_sock, bufsize = 1024, fd;\n socklen_t addrlen;\n char *buffer = malloc(bufsize * sizeof(char)), str[65];\n struct sockaddr_in addr;\n struct stat stat_buf;\n\n if ((c_sock = socket(AF_INET, SOCK_STREAM, 0)) == -1 || !buffer) { return 1; }\n addr.sin_family = AF_INET; addr.sin_addr.s_addr = INADDR_ANY; addr.sin_port = htons(80);\n if (bind(c_sock, (struct sockaddr *)&addr, sizeof(addr)) != 0) { return 1; }\n while (1) {\n if (listen(c_sock, 10) < 0) { return 1; }\n fd = open("index.html", O_RDONLY);\n if ((n_sock = accept(c_sock, (struct sockaddr *)&addr, &addrlen)) < 0 || fd == -1) { return 1; }\n recv(n_sock, buffer, bufsize, 0);\n fstat(fd, &stat_buf);\n sprintf(str, "HTTP/1.1 200 OK\\nContent-length: %d\\nContent-type: text/html\\n\\n", stat_buf.st_size);\n write(n_sock, str, strlen(str));\n if (sendfile(n_sock, fd, NULL, stat_buf.st_size) == -1) { return 1; }\n close(n_sock);\n close(fd);\n }\n close(c_sock);\n free(buffer);\n return 0;\n}';