Skip to content

Instantly share code, notes, and snippets.


Péter Szakszon szxp

  • Hungary
  • 11:27 (UTC +01:00)
View GitHub Profile
View .vimrc
set nocompatible
"Show line numbers
set number
"Show partial matches for a search phrase
set incsearch
"Highlight all matching phrases
set hlsearch
szxp /
Last active Sep 15, 2022
Automatically bump Git tag versions and create a new tag
# 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:
szxp / serveStatic.js
Last active Oct 15, 2017
Node.js static file server over HTTPS
View serveStatic.js
// 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";