Note
For the actual food for mind see https://gist.github.com/sa2ajj/5323326#file-summary-rst
This document _tries_ to outline important items that need to be covered in order to get riak running with docker.
-module(msr_subst). | |
-export([doit/0, props/0]). | |
doit() -> | |
timer:start(), | |
Data = data(), | |
io:format("check_prop: ~p~n", [check_prop(Data)]), | |
io:format("check_dict: ~p~n", [check_dict(Data)]), | |
io:format("check_match: ~p~n", [check_match(Data)]), |
Erlang R14A (erts-5.8) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] | |
Eshell V5.8 (abort with ^G) | |
1> P = [{filename,"Filename"}, | |
1> {maintainer,"Maintainer"}, | |
1> {description,"Description"}, | |
1> {package,"Package"}, | |
1> {section,"Section"}, | |
1> {'installed-size',"Installed-Size"}, | |
1> {priority,"Priority"}, |
======= | |
Testing | |
======= | |
This page should have at least something... | |
.. erl:module:: test | |
.. erl:function: my_function(Arg1, Arg2) |
$ docker help run | |
Usage: docker run [OPTIONS] IMAGE COMMAND [ARG...] | |
Run a command in a new container | |
-a=map[]: Attach to stdin, stdout or stderr. | |
-d=false: Detached mode: leave the container running in the background | |
-e=[]: Set environment variables | |
-h="": Container host name |
Note
For the actual food for mind see https://gist.github.com/sa2ajj/5323326#file-summary-rst
This document _tries_ to outline important items that need to be covered in order to get riak running with docker.
# Documentation for HAProxy | |
# http://code.google.com/p/haproxy-docs/w/list | |
# http://haproxy.1wt.eu/download/1.2/doc/architecture.txt | |
# NOTES: | |
# open files limits need to be > 256000, use ulimit -n to set (on most POSIX systems) | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice |
FIELDS = ['cmd', 'command', 'start', 'end', 'delta', 'msg', 'stdout', 'stderr'] | |
def human_log(res): | |
if type(res) == type(dict()): | |
for field in FIELDS: | |
if field in res.keys(): | |
encoded_field = res[field].encode('utf-8') | |
print '\n{0}:\n{1}'.format(field, encoded_field) |
### Keybase proof | |
I hereby claim: | |
* I am sa2ajj on github. | |
* I am sa2ajj (https://keybase.io/sa2ajj) on keybase. | |
* I have a public key whose fingerprint is 7D8C 7CC9 0D15 2DE6 DC47 E9A8 4D7A 78A7 8CE6 39F1 | |
To claim this, I am signing this object: |
#! /usr/bin/python -tt | |
from smtplib import SMTP | |
from getpass import getpass | |
def main(): | |
""" | |
entry point | |
""" |
cmake_minimum_required(VERSION 3.6) | |
project(blah) | |
add_executable( | |
blah | |
main.cpp | |
) |