A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs") | |
| port = process.argv[2] || 8888; | |
| http.createServer(function(request, response) { | |
| var uri = url.parse(request.url).pathname | |
| , filename = path.join(process.cwd(), uri); |
| var connect = require('connect') | |
| , proxy = require('http-proxy') | |
| function redirect(loc) { | |
| return connect.createServer(function(req, res){ | |
| res.writeHead(301, { "Location": loc }); | |
| res.end(); | |
| }); | |
| } |
| var http = require("http"); | |
| /* | |
| add following to your hosts config to test: | |
| 10.11.12.8 www.vhost1.net | |
| 10.11.12.8 www.vhost2.com | |
| 10.11.12.8 www.vhost3.test.com | |
| 10.11.12.8 static.vhost1.net |
| // -------------------------------------------------- | |
| // Flexbox LESS mixins | |
| // The spec: http://www.w3.org/TR/css3-flexbox | |
| // -------------------------------------------------- | |
| // Flexbox display | |
| // flex or inline-flex | |
| .flex-display(@display: flex) { | |
| display: ~"-webkit-@{display}"; | |
| display: ~"-ms-@{display}box"; // IE10 uses -ms-flexbox |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
| // Variables dc (http://nodejs.org/api/) | |
| var http = require("http"), | |
| url = require("url"), | |
| path = require("path"), | |
| fs = require("fs"), | |
| port = process.argv[2] || 1337, // Array ex -> http://nodejs.org/docs/latest/api/process.html#process_process_argv | |
| mimeTypes = { | |
| // Basic mimes | |
| 'asc' : 'text/plain', |
| #!/bin/bash | |
| # | |
| # Provision for Vagrant box ArchLinux | |
| # | |
| # Insert to Vagrantfile: | |
| # config.vm.provision "shell", path: "https://gist.github.com/smaknsk/8165875/raw" | |
| # | |
| # | |
| # Run nginx, httpd, php-fpm as user: |
| var http = require("http"); | |
| var url = require("url"); | |
| var fs = require("fs"); | |
| var port = process.argv[2] || 8080; | |
| var contentTypes = { | |
| 'ico': 'image/x-icon', | |
| 'html': 'text/html', | |
| 'js': 'application/javascript', | |
| 'json': 'application/json', |