This file contains 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 main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
) | |
var INDEX_HTML []byte |
This file contains 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
case class Author(name: String, email: String, links: List[Link]) | |
case class Commit(id: String, message: String, parentId: List[String], author: Author, valid: Option[Boolean], links: List[Link]) |
This file contains 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
dockerCommands ++= Seq( | |
Cmd("ADD", "scm-source.json" + " /"), | |
Cmd("RUN", "chmod a+x /opt/docker/bin/*"), | |
Cmd("USER", "root"), | |
Cmd("RUN", """curl -o /opt/docker/bin/gosu -sSL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)" """), | |
Cmd("RUN", """curl -o /opt/docker/bin/gosu.asc -sSL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture).asc" """), | |
Cmd("RUN", "gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4"), | |
Cmd("RUN", "gpg --verify /opt/docker/bin/gosu.asc"), | |
Cmd("RUN", "rm /opt/docker/bin/gosu.asc"), | |
Cmd("RUN", "apt-get update"), |
This file contains 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
def saveApps(input: Seq[AppInfo]) = { | |
logger.info(s"Apps to save:" + input.size) | |
db.run(this.apps ++= input).map(_ => ()) | |
} | |
def appInfos(): Future[Seq[AppInfo]] = { | |
logger.info("Searching") |
This file contains 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
*.class | |
*.log | |
# sbt specific | |
.cache | |
.history | |
.lib/ | |
dist/* | |
target/ | |
lib_managed/ |
This file contains 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 org.zalando.nakadi.client | |
import scala.concurrent.duration.DurationInt | |
import org.slf4j.LoggerFactory | |
import org.zalando.nakadi.client.model.EventMetadata | |
object Main extends App { | |
val logger = LoggerFactory.getLogger(this.getClass) | |
val host = "nakadi-sandbox.aruha-test.zalan.do" |
This file contains 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 org.zalando.nakadi.client.examples.java; | |
import java.util.Optional; | |
import java.util.concurrent.ExecutionException; | |
import org.zalando.nakadi.client.java.Client; | |
import org.zalando.nakadi.client.java.Listener; | |
import org.zalando.nakadi.client.java.StreamParameters; | |
import org.zalando.nakadi.client.java.model.Cursor; | |
import org.zalando.nakadi.client.java.model.EventStreamBatch; |
This file contains 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.codahale.jerkson.Json | |
import org.codehaus.jackson.map.module.SimpleModule | |
import org.codehaus.jackson.{JsonParser, JsonGenerator, Version} | |
import org.codehaus.jackson.map.annotate.JsonCachable | |
import org.codehaus.jackson.map.{DeserializationContext, JsonDeserializer, SerializerProvider, JsonSerializer} | |
object CustomJson extends Json { | |
val module = new SimpleModule("CustomJson", Version.unknownVersion()) | |
// --- (SERIALIZERS) --- | |
module.addSerializer(classOf[Enumeration#Value], new JerksonEnumerationSerializer()) |
This file contains 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 | |
############################################## | |
# Install script for Apache Maven | |
# for debian, ubuntu, and centos | |
# | |
# Usage: | |
# arg0: "maven_version_number" | |
# config.vm.provision "shell", path: "linux/bootstrap-maven.sh", args: "3.3.9" | |
# |
This file contains 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 | |
############################################## | |
# Install script Java on Jenkins | |
# for debian, ubuntu, and centos | |
# | |
# | |
############################################## | |
JAVA_VERSION="8u92" |
OlderNewer