Skip to content

Instantly share code, notes, and snippets.

View bphenriques's full-sized avatar
💭
🐢

Bruno Henriques bphenriques

💭
🐢
View GitHub Profile
@bphenriques
bphenriques / ForwardSchemaCompatability.scala
Last active October 20, 2023 16:27
CheckForwardJsonSchemaCompatibility
//> using scala 3.3.1
//> using repository https://packages.confluent.io/maven/
//> using dep io.confluent:kafka-json-schema-provider:7.5.1
//> using dep org.typelevel::cats-core:2.10.0
//> using dep co.fs2::fs2-core:3.9.2
//> using dep co.fs2::fs2-io:3.9.2
import io.confluent.kafka.schemaregistry.json.JsonSchema
import fs2.io.file.*
@bphenriques
bphenriques / kafka-config.scala
Last active January 13, 2023 12:41
Create Kafka consumer properties file
#!/usr/bin/env -S scala-cli shebang --scala-version 2
//> using repository "https://packages.confluent.io/maven/"
//> using repository "jitpack"
//> using repository "https://kaluza.jfrog.io/artifactory/maven/"
//> using lib "is.cir::ciris::3.0.0"
//> using lib "com.ovoenergy::ciris-aiven-kafka::3.0.0"
//> using lib "org.typelevel::cats-core:2.9.0"
//> using lib "org.typelevel::cats-effect:3.4.4"
@bphenriques
bphenriques / server.sc
Created June 1, 2020 15:42
Scala Ammonite Akka Server
// ### Installation
// sbt: brew install sbt@1
// ammonite: brew install ammonite-repl
// ### Dependencies
import $ivy.`com.typesafe.akka::akka-http:10.1.9`
import $ivy.`com.typesafe.akka::akka-stream:2.5.23`
// ### Configuration
val Host = "localhost"
@bphenriques
bphenriques / keybase.md
Created May 31, 2019 15:37
Keybase Proof - Talkdesk

Keybase proof

I hereby claim:

  • I am bphenriques on github.
  • I am brunohenriques (https://keybase.io/brunohenriques) on keybase.
  • I have a public key ASDBvK6Uperq-flymbh8yrArf4lMmyRbue35VPMUQW2Qzgo

To claim this, I am signing this object: