$ openssl genrsa -out private.key 4096
openssl req -new -sha256 \
const ts = require('typescript'); | |
const tsConfig = require('./tsconfig.json'); | |
const config = tsConfig.compilerOptions; | |
function compile(fileNames, options) { | |
if (fileNames.filter(Boolean).length === 0) { | |
console.log('No files'); | |
return; | |
} |
package com.blazemeter.dagger.config; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import lombok.extern.slf4j.Slf4j; | |
import org.springframework.stereotype.Component; | |
import org.springframework.web.server.ServerWebExchange; | |
import org.springframework.web.server.WebFilter; | |
import org.springframework.web.server.WebFilterChain; | |
import reactor.core.publisher.Mono; |
public static final Scheduler scheduler = Schedulers.fromExecutorService(new ThreadPoolExecutor(4, 10, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>())) |
<?php | |
class State { | |
public $foo = 0; | |
} | |
class Mutator { | |
public function mutateState(State $state) { | |
$state->foo = 4; | |
} |
FROM alpine:3.8 AS builder | |
WORKDIR /opt | |
ARG JDK_TAR=openjdk-11+28_linux-x64-musl_bin.tar.gz | |
ARG JDK_DOWNLOAD_PREFIX=https://download.java.net/java/early_access/alpine/28/binaries | |
RUN wget -q "$JDK_DOWNLOAD_PREFIX/$JDK_TAR" && \ | |
wget -q "$JDK_DOWNLOAD_PREFIX/$JDK_TAR.sha256" | |
RUN cat $JDK_TAR.sha256 | xargs -I{} echo "{} $JDK_TAR" | sha256sum -c - && \ |
@GetMapping("/percentiles-distribution") | |
public Flux<PercentilesDistribution> getAggregatePercentiles( | |
@RequestParam @Positive long masterId, | |
@RequestParam(defaultValue = "0") @Min(-1) long from, | |
@RequestParam(defaultValue = "0") @Min(-1) long to, | |
@RequestParam(defaultValue = "ALL") @Size(max = Constants.MAX_LOCATIONS) ArrayList<String> locationId, | |
@RequestParam(defaultValue = "") @Size(max = Constants.MAX_SCENARIOS) ArrayList<String> scenarioId, | |
@RequestParam(defaultValue = "") ArrayList<String> labelIds | |
) { | |
final int interval = 60; |
package main | |
import ( | |
"fmt" | |
"hash/fnv" | |
"math/rand" | |
"os" | |
"github.com/docker/docker/pkg/namesgenerator" | |
) |
buildscript { | |
ext { | |
springBootVersion = '2.0.2.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} |
export class Request { | |
ajax = $.ajax; | |
baseURL = API_BASE_URL; | |
contentType = 'application/json'; | |
data = null; | |
dataType = 'json'; | |
global = true; | |
method = 'GET'; | |
params = null; | |
paramsSerializer = defaultParamsSerializer; |