Skip to content

Instantly share code, notes, and snippets.

@sebmaynard
sebmaynard / module_starter_hack.erl
Created June 6, 2013 13:54
A hack to try and startup an erlang application and its dependencies. Should only really be used for lazy development/fiddling as reltool/relx/rebar will handle all this for you.
-module(module_starter_hack).
-export([try_force_start_application/1]).
try_force_start_application(App) ->
start_application_process_result(App, try_start_application(App)).
%%%%%%%%%%%%%%%
%% Helpers
@sebmaynard
sebmaynard / camisc_unique.erl
Created May 15, 2013 09:03
Generate a somewhat unique 64 bit number.
-module(camisc_unique).
-export([semi_unique/0, get_timestamp/0, test/0]).
%% ===================================================================
%% API
%% ===================================================================
%% Generate a somewhat unique 64 bit number.
%%
@sebmaynard
sebmaynard / quick-boot-repair.sh
Created September 17, 2012 11:18
Boot-repair script
#!/bin/bash
sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair