This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
udp { | |
port => 5454 | |
} | |
} | |
output { | |
stdout { | |
codec => rubydebug | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter { | |
json { | |
source => "message" | |
} | |
} | |
input { | |
udp { | |
port => 5454 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
udp { | |
port => 5454 | |
codec => json_lines | |
} | |
} | |
output { | |
stdout { | |
codec => json_lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN apt-get update && apt-get -y upgrade && apt-get -y install wget && apt-get -y install git | |
RUN cd /tmp; wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \ | |
dpkg -i erlang-solutions_1.0_all.deb | |
RUN apt-get update && apt-get -y install erlang erlang-base-hipe build-essential | |
RUN git clone https://github.com/rebar/rebar3 && cd rebar3 && ./bootstrap && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# What is that | |
# ============ | |
# | |
# This script will help you setting up your digital ocean | |
# infrastructure with Ansible v2.0+ and DO API v2 | |
# | |
# Usually, when working with DO, one is supposed to use digital_ocean.py | |
# inventory file, and spin up instances in a playbook. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rebar3 as prod relflow -u v20150714.074813 | |
rebar3 as prod tar relup -u 20150714.074813 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void hex_print(byte *buf, int n) { | |
fprintf(stderr, "<<"); | |
for (int i = 0; i < n; i++) | |
{ | |
fprintf(stderr, "16#%02X", buf[i]); | |
if (i < n-1) fprintf(stderr, ","); | |
} | |
fprintf(stderr,">>\r\n"); | |
fflush(stderr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
RUN apt-get update --fix-missing && apt-get -y upgrade &&\ | |
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 40976EAF437D05B5 && \ | |
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32 && \ | |
apt-get -y install wget && apt-get -y install git && apt-get -y install vim | |
RUN cd /tmp; wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && \ | |
dpkg -i erlang-solutions_1.0_all.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM erlang-ubuntu14 | |
RUN cd /tmp && \ | |
wget \ | |
https://root.cern.ch/download/root_v6.06.00.Linux-ubuntu14-x86_64-gcc4.8.tar.gz\ | |
&& tar -zxf root_v6.06.00.Linux-ubuntu14-x86_64-gcc4.8.tar.gz -C /usr/local/share | |
RUN ln -sf /usr/local/share/root/include/ /usr/local/include/root && \ | |
/bin/bash -c "source /usr/local/share/root/bin/thisroot.sh" && \ | |
apt-get -y install python-software-properties && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __MINUNIT_H__ | |
#define __MINUNIT_H__ | |
#define mu_assert(message, test) do { if (!(test)) return message; } while (0) | |
#define mu_run_test(test) do { char *message = test(); tests_run++; \ | |
if (message) return message; } while (0) | |
extern int tests_run; | |
#endif //__MINUNIT_H__ |
OlderNewer