Skip to content

Instantly share code, notes, and snippets.

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

Antoine Gauthier gantoin

🏠
Working from home
View GitHub Profile
@gantoin
gantoin / kafka-schema-registry.md
Last active February 5, 2023 08:32
🚌 Make your Kafka bus more robust with Apache Avro & Confluent Schema Registry

🚌 Make your Kafka bus more robust with Apache Avro & Confluent Schema Registry

tags: kafka, avro, blog

In this article, you will learn how to use Apache Avro and Confluent Schema Registry to make your Kafka bus more robust.

Introduction

Apache Kafka is a distributed streaming platform. It is used to publish and subscribe to streams of records, similar to a message queue or enterprise messaging system. Kafka is often used as a data bus to connect different systems and applications. It is a very powerful tool, but it is not without its challenges. One of the most common challenges is the lack of data validation.

@gantoin
gantoin / landoop-fast-data-dev-m1.md
Last active January 26, 2023 11:34
🐳 How to run 'landoop/fast-data-dev' on Mac M1?

🐳 How to run 'landoop/fast-data-dev' on Mac M1?

tags: blog, docker, arm

Hey guys!

I was following a lecture about Kafka Schema Registry when I suddenly had to run Landoop and a bunch of tools with Docker on my Mac.

I met this error after running this Dockerfile:

@gantoin
gantoin / chatgpt-api-in-java.md
Last active May 1, 2024 22:18
🤖 How to use ChatGPT API in your Java application?

🤖 How to use ChatGPT API in your Java application?

tags: chatgpt, java, api

Hi guys 👋 I'm sure you enjoy using chat GPT to produce, optimise, or translate code from any programming language to Java.

Today I'll show you how to use OpenAI ChatGPT API with Java, it's pretty easy.

1. Register for an API key

@gantoin
gantoin / twitch-oauth2-spring-security.md
Last active January 4, 2024 06:16
📌 Configure Twitch API OAuth2 provider on a Spring Security app

📌 Configure Twitch API OAuth2 provider on a Spring Security app

tags: oauth2, twicth, api

Hi guys, I'm working on a SaaS to manage Twitch Clips of broadcasters:

  • Create vertical Clips automatically for TikTok, Youtube Shorts, etc.
  • Create compilation for clips to easily make best-of

So, I had to plug my Spring Security app into the Twitch OAuth2 provider and it was not easy...

@gantoin
gantoin / frontend-java-development-with-vaadin.md
Last active June 4, 2023 13:06
💭 How I became a FullStack Java developer with Vaadin?

💭 How I became a FullStack Java developer with Vaadin?

tags: blog, java, vaadin

What is Vaadin?

Vaadin is an open-source framework for building modern web applications. It allows developers to create rich, interactive user interfaces using Java, without the need to learn JavaScript or any other client-side programming language.

Vaadin was first released in 2002 and has since become a popular choice for building enterprise-level applications. It is used by companies such as Nokia, Goldman Sachs, and the United States Air Force, among others.

@gantoin
gantoin / EN-plug-umbrel-nextcloud-to-mobile-app.md
Last active March 9, 2024 20:34
☂️ How to plug your Umbrel's Nextcloud into the official Nextcloud mobile app? (using Tailescape & some docker commands)

☂ How to plug your Umbrel's Nextcloud into the official Nextcloud mobile app? (using Tailscale & some docker commands)

tags: umbrel, nextcloud, tailscale

Why you could want to do that?

You could want to use the Nextcloud app to make saving your phone data easier or to get documents from your cloud easily (without a Tor browser, connect via onion etc.).

Why is it not possible natively?