Skip to content

Instantly share code, notes, and snippets.

View edsiper's full-sized avatar
🏠
Working from home

Eduardo Silva edsiper

🏠
Working from home
View GitHub Profile
@edsiper
edsiper / output.c
Last active June 1, 2020 20:06
test payload
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, ....)
@edsiper
edsiper / test.lua
Created June 12, 2018 15:30
dockercon
```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 January 22, 2019 18:18
article_kubecon

suggest parser

apiVersion: v1
kind: Pod
metadata:
  name: apache-logs
  labels:
    app: apache-logs
  annotations:
@edsiper
edsiper / kubernetes_commands.md
Last active March 5, 2024 14:04
Kubernetes Useful Commands
@edsiper
edsiper / test.md
Last active March 4, 2017 05:06
msgpack test
[
  { "format": "fixarray",
    "header": "0x94",
    "length": 4,
    "children": [
          { "format": "fixstr",
            "header": "0xb3",
            "length": 19,
            "data": "0x646f636b65722e623034646262626334393663",
@edsiper
edsiper / problem.md
Last active March 4, 2017 04:28
forward - msgpack

forward.dat => 162 bytes

decoding with msgpack-2.1.1

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