Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block folkcode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
folkcode / nginx.conf
Created Oct 18, 2016 — forked from plentz/nginx.conf
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
folkcode / nginx_storage_spray.conf
Created Apr 10, 2016 — forked from ilguzin/nginx_storage_spray.conf
spray + nginx: serve static with storage API endpoint
View nginx_storage_spray.conf
server {
listen 443 ssl;
server_name hostname;
ssl on;
ssl_certificate /etc/nginx/ssl_certs/hostname.bndl.crt;
ssl_certificate_key /etc/nginx/ssl_certs/hostname.key;
ssl_session_timeout 5m;
folkcode /
Created Mar 22, 2016 — forked from robertoaloi/
Kill an Erlang process by node name
#!/usr/bin/env bash
# Kill an Erlang process by node name
# e.g.: kill-erlang-node kred
# Check usage
if [ -z "$1" ]; then
echo "Usage: `basename $0` NODE_NAME"
exit 1
folkcode /
Created Mar 22, 2016 — forked from bryanhunter/
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
# Pull this file down, make it executable and run it with sudo
# wget
# chmod u+x
# sudo ./
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
You can’t perform that action at this time.