Skip to content

Instantly share code, notes, and snippets.

plentz / nginx.conf
Last active Aug 17, 2022
Best nginx configuration for improved security(and performance). Complete blog post here
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
klutzy /
Last active Dec 23, 2015
for extern "C++"
extern mod syntax;
extern mod rustc;
pub use syntax::ast;
pub use rustc::middle::ty;
pub use rustc::middle::ty::t;
fn cpp_arg_mangle(arg: t) -> ~str {
let arg = ty::get(arg);
match arg.sty {
toqueteos / sha1.go
Last active Feb 1, 2022
Minecraft player auth SHA-1 digest.
View sha1.go
// You can test this online at:
package main
import (
zziuni / stuns
Created Sep 18, 2012
STUN server list
View stuns
# source :
# A list of available STUN server.
View gist:2500616
diff --git a/src/libpiano/piano.c b/src/libpiano/piano.c
index 342e4ec..b70477e 100644
--- a/src/libpiano/piano.c
+++ b/src/libpiano/piano.c
@@ -42,7 +42,7 @@ THE SOFTWARE.
#include "crypt.h"
#include "config.h"
rnewson / gist:2387973
Created Apr 14, 2012
CouchDB Future Feature List - Round 2
View gist:2387973
A list of features that we want to see in CouchDB. Needs to be voted on so that it can become a priority queue.
User Facing Features
1. Conflicts are the rule, not the exception
All previous versions of CouchDB hide conflicts by default (selecting
an arbitrary but consistent winning revision). Expert users can find
and resolve conflicts.
michiel / cors-nginx.conf
Created Jul 5, 2011
Wide-open CORS config for nginx
View cors-nginx.conf
# Wide-open CORS config for nginx
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
View Makefile
include $(GOROOT)/src/Make.$(GOARCH)
include $(GOROOT)/src/Make.pkg