This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
"Show line numbers | |
set number | |
"Show partial matches for a search phrase | |
set incsearch | |
"Highlight all matching phrases | |
set hlsearch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# BSD 3-Clause License | |
# | |
# Copyright (c) 2017, Péter Szakszon | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Serves static files from the www directory over HTTP | |
// Usage: node serveStatic.js | |
// generate SSL keys for supporting HTTPS | |
// openssl genrsa -out server-key.pem 1024 | |
// openssl req -new -key server-key.pem -out server-csr.pem | |
// openssl x509 -req -in server-csr.pem -signkey server-key.pem -out server-cert.pem | |
"use strict"; |