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
Interface Settings | |
{ | |
"locale": "en-US" | |
} | |
Graphics Settings | |
{ | |
"qualitySettings": [ | |
{ | |
"enabled": true, | |
"isAdaptive": true, |
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
{ | |
"correlationId": "83937bab-e23c-465f-9708-5c0a0030cc6e", | |
"items": [ | |
{ | |
"jobId": "7601ebfa-fb17-41ad-815e-a7b6339952df", | |
"status": "Waiting", | |
"variants": [ | |
{ | |
"variantId": 1, | |
"status": "Waiting", |
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
object HMAC { | |
def generateHMAC(sharedSecret: String, input: String): String = { | |
val secret = new SecretKeySpec(sharedSecret.getBytes, "HmacSHA256") //Crypto Funs : 'SHA256' , 'HmacSHA1' | |
val mac = Mac.getInstance("HmacSHA256") | |
mac.init(secret) | |
val hashString: Array[Byte] = mac.doFinal(input.getBytes) | |
// this makes sure that the string is 64chars long and gets padded with 0 if its shorter | |
String.format("%064x", new BigInteger(1, hashString)) | |
} |
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 play.api.libs.json._ | |
sealed trait Animal { | |
val `type`: String | |
} | |
case class Cat(name: String) extends Animal { | |
override val `type`: String = "cat" | |
} |
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 cats.data.EitherT | |
import io.vavr.concurrent.{Future => VavrFuture} | |
import scala.concurrent.{ExecutionContext, Future, Promise} | |
object VavrToScalaConverters { | |
implicit class VavrFutureToScala[T](future: VavrFuture[T]) { | |
def asScala: Future[T] = { |
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 io.swagger.v3.core.util.Json; | |
import io.swagger.v3.oas.models.OpenAPI; | |
import io.swagger.v3.oas.models.info.Info; | |
import io.vavr.concurrent.Future; | |
import io.vavr.jackson.datatype.VavrModule; | |
import org.springdoc.core.converters.ConverterUtils; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration |
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 com.dominikdorn.sample.configuration; | |
import io.swagger.v3.oas.models.OpenAPI; | |
import io.swagger.v3.oas.models.info.Info; | |
import io.vavr.concurrent.Future; | |
import org.springdoc.core.GroupedOpenApi; | |
import org.springdoc.core.converters.ConverterUtils; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; |
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 io.micrometer.core.annotation.Timed; | |
import io.swagger.v3.oas.annotations.Operation; | |
import io.swagger.v3.oas.annotations.media.Schema; | |
import io.swagger.v3.oas.annotations.responses.ApiResponse; | |
import io.vavr.concurrent.Future; | |
import io.vavr.control.Option; | |
import lombok.AllArgsConstructor; | |
import lombok.Value; | |
import lombok.extern.slf4j.Slf4j; | |
import lombok.val; |
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
play.shaded.ahc.org.asynchttpclient.threadPoolName=AsyncHttpClient | |
play.shaded.ahc.org.asynchttpclient.maxConnections=-1 | |
play.shaded.ahc.org.asynchttpclient.maxConnectionsPerHost=-1 | |
play.shaded.ahc.org.asynchttpclient.connectTimeout=5000 | |
play.shaded.ahc.org.asynchttpclient.pooledConnectionIdleTimeout=60000 | |
play.shaded.ahc.org.asynchttpclient.connectionPoolCleanerPeriod=1000 | |
play.shaded.ahc.org.asynchttpclient.readTimeout=60000 | |
play.shaded.ahc.org.asynchttpclient.requestTimeout=60000 | |
play.shaded.ahc.org.asynchttpclient.connectionTtl=-1 | |
play.shaded.ahc.org.asynchttpclient.followRedirect=false |
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
{ | |
"ignition": { "version": "2.0.0" }, | |
"storage": { | |
"disks": [ | |
{ | |
"device": "/dev/sda", | |
"wipeTable": false, | |
"partitions": [{ | |
"label": "raid.1.1", | |
"number": 10, |
NewerOlder