Skip to content

Instantly share code, notes, and snippets.

View Vienchau's full-sized avatar
🥺

Vien.Beos Vienchau

🥺
View GitHub Profile
@Vienchau
Vienchau / docker-compose.yml
Last active November 23, 2023 05:24
Simple docker-compose file to create kafka - zookeeper - kowl container for testing in local.
version: "2.1"
services:
zookeeper:
image: docker.io/bitnami/zookeeper:3.8
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
volumes:
@Vienchau
Vienchau / docker-compose.yml
Last active October 18, 2023 02:48
Docker compose file for Confluent Kafka-rest: confluentinc/cp-zookeeper, confluentinc/cp-kafka, confluentinc/cp-schema-registry, confluentinc/cp-kafka-rest
version: '3'
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
hostname: zookeeper
container_name: zookeeper
ports:
- "32181:32181"
volumes:
@Vienchau
Vienchau / mosquitto.c
Last active April 18, 2023 08:30
Simple mosquitto subscribe implement
#include "curldefine.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <mosquitto.h>
#include <string.h>
/*SUB TASK DEFINE*/
#define TOPIC "MQTT/Topic1"
#define CERT_EMQX "/tmp/tmp/broker.emqx.io-ca.crt"