Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Eduardo Silva edsiper

🏠
Working from home
View GitHub Profile
@edsiper
edsiper / output.c
Last active Jun 1, 2020
test payload
View output.c
static char *format_payload(void *data, size_t bytes)
{
char *payload;
/* iterate msgpack and compose payload */
return payload;
}
/* This function is only invoked from the runtime test library */
static char *cb_test_payload(...void *data, size_t bytes, ....)
View test.lua
```lua
function cb_replace(tag, timestamp, record)
new_record = {}
new_record["new"] = 12345
new_record["old"] = record
return 1, timestamp, new_record
end
```
@edsiper
edsiper / doc.md
Last active Jan 22, 2019
article_kubecon
View doc.md

suggest parser

apiVersion: v1
kind: Pod
metadata:
  name: apache-logs
  labels:
    app: apache-logs
  annotations:
@edsiper
edsiper / kubernetes_commands.md
Last active May 16, 2021
Kubernetes Useful Commands
View kubernetes_commands.md
@edsiper
edsiper / test.md
Last active Mar 4, 2017
msgpack test
View test.md
[
  { "format": "fixarray",
    "header": "0x94",
    "length": 4,
    "children": [
          { "format": "fixstr",
            "header": "0xb3",
            "length": 19,
            "data": "0x646f636b65722e623034646262626334393663",
@edsiper
edsiper / problem.md
Last active Mar 4, 2017
forward - msgpack
View problem.md

forward.dat => 162 bytes

decoding with msgpack-2.1.1

[
    "docker.61aef28b876e", 
    1488601623, 
    {
        "container_id"=>"61aef28b876e6d022419335ac2eee260de90523bcc64b44264a61e2feacaca4d",
@edsiper
edsiper / flb.conf
Last active Feb 15, 2017
Fluent Bit multiple I/O
View flb.conf
[INPUT]
Type cpu
Tag prod.cpu
[INPUT]
Type mem
Tag dev.mem
[OUTPUT]
Type forward