Skip to content

Instantly share code, notes, and snippets.

@hayajo
hayajo / gist:2848763
Created June 1, 2012 04:27
fluentd qmail-send log format
format /^(?<tai64>[^ ]+) (?<message>(((?:new|end) msg (?<key>[0-9]+)|info msg (?<key>[0-9]+): bytes (?:\d+) from <(?<address>[^>]*)> |starting delivery (?<delivery_id>[0-9]+): msg (?<key>[0-9]+) to (?:local|remote) (?<address>.+)|delivery (?<delivery_id>[0-9]+))?.*))$/
@simon-engledew
simon-engledew / tsung.xml
Created March 19, 2015 11:45
Tsung 1.5 + Rails Authenticity Token + URI encoding
<!-- You need to transform Val from a binary to a list and back again -->
<setdynvars sourcetype="eval" code="fun({Pid,DynVars})->
{ok, Val} = ts_dynvars:lookup(authenticity_token, DynVars),
list_to_binary(http_uri:encode(binary_to_list(Val)))
end.">
<var name="escaped_authenticity_token" />
</setdynvars>