This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.leosilvadev | |
import spock.lang.Specification | |
import spock.util.concurrent.BlockingVariable | |
import java.util.concurrent.TimeUnit | |
import java.util.function.Consumer | |
class MySpec extends Specification { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.finleap.bot.model; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.finleap.bot.service.BotResultPublisher; | |
import com.finleap.core.model.converstion.MessageType; | |
import com.finleap.resources.VerimiResource; | |
import com.finleap.service.StateUpdator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.leosilvadev.verticle; | |
import io.vertx.core.AbstractVerticle; | |
import io.vertx.core.DeploymentOptions; | |
import io.vertx.core.Vertx; | |
import java.util.concurrent.atomic.AtomicLong; | |
/** | |
* Created by leonardo on 11/18/17. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update && apt-get install -y apt-transport-https curl | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
apt-get install -y kubelet kubeadm kubectl | |
apt-mark hold kubelet kubeadm kubectl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sksamuel.avro4s.{AvroSchema, SchemaFor} | |
import org.apache.avro.Schema | |
import org.apache.avro.util.Utf8 | |
case class MyClass(id: Utf8, name: Utf8, familyName: Option[Utf8]) | |
object Main extends App { | |
implicit object Utf8Schema extends SchemaFor[Utf8] { | |
override def schema: Schema = Schema.create(Schema.Type.STRING) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.leosilvadev.detectorapp; | |
import jakarta.jms.*; | |
import org.apache.activemq.artemis.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy; | |
import org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory; | |
import org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory; | |
import org.springframework.aot.hint.MemberCategory; | |
import org.springframework.aot.hint.RuntimeHints; | |
import org.springframework.aot.hint.RuntimeHintsRegistrar; | |
import org.springframework.aot.hint.TypeReference; |
OlderNewer