Skip to content

Instantly share code, notes, and snippets.

View fefz's full-sized avatar
💭
I may be slow to respond.

swing fefz

💭
I may be slow to respond.
View GitHub Profile
@fefz
fefz / nginx-tls.conf
Last active September 11, 2018 14:07 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <[email protected]>
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related
# to SSL/TLS are omitted here.
#
# Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io
#
@fefz
fefz / parasitic-combination-inheritance.js
Created November 29, 2017 01:40 — forked from w1shen/parasitic-combination-inheritance.js
Parasitic Combination Inheritance
function obj(o) {
function F() {}
F.prototype = o;
return new F();
}
function inheritPrototype(sub, sup) {
var p = obj(sup.prototype);
p.constructor = sub;
sub.prototype = p;