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
#!/bin/sh | |
# to run just need to excecute | |
#./mkdirSbt nameOfProject nameOfDefaultPackage | |
#The las paramater can be empty | |
#Modified from this example, but i fixed some issues than didn't work in my computer. | |
#https://alvinalexander.com/scala/how-to-create-sbt-project-directory-structure-scala | |
if ! [ -z "$1" ] | |
then | |
mkdir $1 |
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 kafka.server.KafkaConfig; | |
import kafka.server.KafkaServer; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.List; | |
import java.util.Properties; |
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 vmarcinko.undertow; | |
import io.undertow.Handlers; | |
import io.undertow.Undertow; | |
import io.undertow.server.HttpHandler; | |
import io.undertow.server.handlers.PathHandler; | |
import io.undertow.server.handlers.RedirectHandler; | |
import io.undertow.server.handlers.resource.FileResourceManager; | |
import io.undertow.servlet.Servlets; | |
import io.undertow.servlet.api.DeploymentInfo; |