Skip to content

Instantly share code, notes, and snippets.

View AppRTCUbuntu.md
@folkcode
folkcode / nginx.conf
Created Oct 18, 2016 — 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/
View nginx.conf
# 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 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
folkcode / kill-erlang-node.sh
Created Mar 22, 2016 — forked from robertoaloi/kill-erlang-node.sh
Kill an Erlang process by node name
View kill-erlang-node.sh
#!/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 Mar 22, 2016 — forked from bryanhunter/build-erlang-17.0.sh
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
View build-erlang-17.0.sh
#!/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
You can’t perform that action at this time.