Skip to content

Instantly share code, notes, and snippets.

# A sample TOML config file for tocb.
#=====================================================================
# couchbase data
#---------------------------------------------------------------------
[couchbase]
# "localhost" or IP
@chapani
chapani / tour.json
Last active April 27, 2017 15:45
Proposed Tour GeoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chapani
chapani / uploader.erl
Last active December 20, 2015 04:39
https://gist.github.com/2834137 Slightly modified to be compatible cowboy 0.6
%%%-------------------------------------------------------------------
%%% @author egobrain <egobrain@linux-ympb>
%%% @copyright (C) 2012, egobrain
%%% @doc
%%% Function for uploading files and properties,which were sent as a
%%% multipart. Files are stored in tmp_folder with random name,
%%% generated by tmp_filename function.
%%% @end
%%% Created : 25 Mar 2012 by egobrain <egobrain@linux-ympb>
%%%-------------------------------------------------------------------
global
maxconn 2048
debug
defaults
mode http
retries 3
maxconn 1024
timeout connect 5000
# timeout client 50000
{"init terminating in do_boot",{undef,[{buser,start,[],[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
make: *** [webstart] Error 1
all: deps
app: get-deps
@./rebar compile #skip_deps=true
get-deps:
@./rebar get-deps
clean:
@./rebar clean