Skip to content

Instantly share code, notes, and snippets.

Avatar
🛩️
Flying @asyncapi airlines

Sergio Moya smoya

🛩️
Flying @asyncapi airlines
View GitHub Profile
@smoya
smoya / 01-07-22__16-09-22.md
Last active Sep 20, 2022
# AsyncAPI Spec and parsers update 🏖️Summer Edition part 2 🏖️ (July, August, and half of September 2022)
View 01-07-22__16-09-22.md

AsyncAPI Spec and parsers update 🏖️Summer Edition part 2 🏖️ (July, August, and half of September 2022)

This is a special entry on my bi-weekly update about the AsyncAPI Spec and parsers. I am grouping summer updates to happen every ~2 months. The reason is that there is less activity in the community during this period due to summer holidays, etc. This is the last special one, by the way.

Note This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec and parsers update?. As most of the work around the AsyncAPI Spec is not only related to https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories:

@smoya
smoya / 11-04-22__30-06-22.md
Last active Jul 11, 2022
AsyncAPI Spec and parsers update 🏖️Summer Edition 🏖️ (May and June 2022)
View 11-04-22__30-06-22.md

AsyncAPI Spec and parsers update 🏖️Summer Edition 🏖️ (May and June 2022)

This is a special entry on my bi-weekly update about the AsyncAPI Spec and parsers. During summer, I will be posting updates every one or two months. The reason is that there is less activity in the community during this period due to summer holidays, etc. (including me 😎).

Note This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec and parsers update?. As most of the work around the AsyncAPI Spec is not only related to https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories:

@smoya
smoya / 01.2022_04_11.md
Last active Apr 11, 2022
AsyncAPI Spec and parsers update (19 March - 11 April 2022)
View 01.2022_04_11.md

AsyncAPI Spec and parsers update (19 March - 11 April 2022)

This is another entry on my bi-weekly update about the AsyncAPI Spec and parsers. This time with a bit of delay. This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec and parsers update?. As most of the work around the AsyncAPI Spec is not only related to https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories:

@smoya
smoya / 01.2022_03_18.md
Last active Apr 11, 2022
AsyncAPI Spec and parsers update (1 March - 18 March 2022)
View 01.2022_03_18.md

AsyncAPI Spec and parsers update (1 March - 18 March 2022)

This is another entry on my bi-weekly update about the AsyncAPI Spec and parsers. This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec and parsers update?. As most of the work around the AsyncAPI Spec is not only related to https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories:

@smoya
smoya / 01.update.md
Last active Mar 2, 2022
AsyncAPI Spec and parsers update (12 Feb - 28 Feb 2022)
View 01.update.md

AsyncAPI Spec and parsers update (12 Feb - 28 Feb 2022)

This is another entry on my bi-weekly update (yes, this time the range is a little more extensive) about the AsyncAPI Spec and parsers. This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec and parsers update?. As most of the work around the AsyncAPI Spec is not only related to https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories:

@smoya
smoya / 01.update.md
Last active Feb 11, 2022
AsyncAPI Spec and parsers update (18 Jan - 11 Feb 2022)
View 01.update.md

AsyncAPI Spec and parsers update (18 Jan - 11 Feb 2022)

This is another entry on my bi-weekly update (yes, this time the range is a little more extensive) about the AsyncAPI Spec and parsers. This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec and parsers update?. As most of the work around the AsyncAPI Spec is not only related to https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories:

@smoya
smoya / 01.update.md
Last active Jan 20, 2022
AsyncAPI Spec and parsers update: 1 Jan - 17 Jan 2022
View 01.update.md

AsyncAPI Spec and parsers update (1 Jan - 17 Jan 2022)

This is another entry on my bi-weekkly update about the AsyncAPI Spec and parsers. This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec ecosystem? As most of the work around the AsyncAPI Spec is not only related with https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories, which I consider them to be part of the same ecosystem:

@smoya
smoya / 01.update.md
Last active Jan 20, 2022
AsyncAPI Spec ecosystem update: 30 Nov - 31 Dec 2021
View 01.update.md

AsyncAPI Spec and parsers update (30 Nov - 31 Dec 2021)

I plan to write periodic updates about the AsyncAPI Spec and parsers every ~2 weeks (I hope you are ok with it). This is not an official AsyncAPI update but a personal summary I volunteer to do.

What do I mean by AsyncAPI Spec ecosystem? As most of the work around the AsyncAPI Spec is not only related with https://github.com/asyncapi/spec, each update will include the most significant recent activity from the following repositories, which I consider them to be part of the same ecosystem:

@smoya
smoya / README.md
Last active May 19, 2020
[Go] POC - Expose spf13/cobra commands via HTTP
View README.md

[Go] Expose spf13/cobra commands via HTTP poc (do not do this at home)

This poc tries to demonstrate how "easy" can be exposing CLI tools via HTTP API. The example isn't perfect. It doesn't provide a REST API but it just allow to quickly prototype tooling that can be accessible both via CLI or HTTP.

This is a do not do this at home, however it can be used as starting point for interesting approaches.

A bit of context

I decided to do this insane proof of concept in order to (in)validate the idea of exposing cobra commands via HTTP as a quick prototyping framework. Once built, you just need to create commands and the api will expose them. Even though it could be fast for prototyping, this is not the ideal solution as it's super tricky.

@smoya
smoya / chunked_test.go
Created Jan 17, 2020
[Go] Stream HTTP Response with chunked transfer encoding.
View chunked_test.go
package main
import (
"bufio"
"context"
"fmt"
"io"
"log"
"net/http"
"net/http/httptest"