Skip to content

Instantly share code, notes, and snippets.

@zwjzxh520
zwjzxh520 / server.js
Created August 6, 2018 12:30 — forked from bencentra/server.js
An HTTPS server for static content (Node.js)
/*
This module creates an HTTPS web server and serves static content
from a specified directory on a specified port.
To generate a new cert:
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365
To remove the passphrase requirement:
@zwjzxh520
zwjzxh520 / fcgiclient.go
Created April 5, 2016 15:11 — forked from wofeiwo/fcgiclient.go
Golang FastCGI Client
// Copyright 2012 Junqing Tan <ivan@mysqlab.net> and The Go Authors
// Use of this source code is governed by a BSD-style
// Part of source code is from Go fcgi package
// Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15
// By: wofeiwo
package fcgiclient
import (