Skip to content

Instantly share code, notes, and snippets.

View crackcell's full-sized avatar

Menglong TAN crackcell

View GitHub Profile
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://raw.github.com/gist/5487621/build-erlang-r16b.sh
# chmod u+x build-erlang-r16b.sh
# sudo ./build-erlang-r16b.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
@crackcell
crackcell / gist:3f2ec8e712f3a9247bf8
Created May 20, 2014 10:02
Erlang repo for raspberry pi (rasbian)
bash
sudo vi /etc/apt/sources.list
deb http://binaries.erlang-solutions.com/debian wheezy contrib
Then add the Erlang Solutions public key for apt-secure.
bash
wget -O - http://binaries.erlang-solutions.com/debian/erlang_solutions.asc | sudo apt-key add -
Update your apt-get package list, and then install esl-erlang.
@crackcell
crackcell / LogLib.pm
Created August 29, 2013 01:32
Simple console logger for Perl.
package Loglib;
use strict;
use Digest::MD5 qw/ md5_hex /;
use POSIX qw(strftime);
use Time::Local;
my $LOG_LEVEL = 16;
my $SN = "Loglib";
@crackcell
crackcell / app.conf
Created February 18, 2013 03:10
BAE(Baidu App Engine) static files config for python and flask
handlers:
- url: /static/(.*)
static_files: templates/static/$1
- url : /.*
script: app.py