Skip to content

Instantly share code, notes, and snippets.

View szxp's full-sized avatar

Péter Szakszon szxp

View GitHub Profile
@szxp
szxp / serveStatic.js
Last active October 15, 2017 10:06
Node.js static file server over HTTPS
// 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";
@szxp
szxp / release.sh
Last active April 11, 2023 07:06
Automatically bump Git tag versions and create a new tag
#!/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:
#
@szxp
szxp / .vimrc
Last active April 21, 2019 12:10
set nocompatible
"Show line numbers
set number
"Show partial matches for a search phrase
set incsearch
"Highlight all matching phrases
set hlsearch