Skip to content

Instantly share code, notes, and snippets.

View folkcode's full-sized avatar
🎯
Focusing

folkcode

🎯
Focusing
View GitHub Profile
@folkcode
folkcode / nginx.conf
Created October 18, 2016 06:24 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@folkcode
folkcode / nginx_storage_spray.conf
Created April 10, 2016 15:28 — forked from ilguzin/nginx_storage_spray.conf
spray + nginx: serve static with storage API endpoint
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
folkcode / kill-erlang-node.sh
Created March 22, 2016 14:58 — forked from robertoaloi/kill-erlang-node.sh
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
folkcode / build-erlang-17.0.sh
Created March 22, 2016 06:40 — forked from bryanhunter/build-erlang-17.0.sh
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
# chmod u+x build-erlang-17.0.sh
# sudo ./build-erlang-17.0.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi