$ openssl genrsa -out private.key 4096openssl req -new -sha256 \| <?php | |
| use Yosymfony\Toml\Toml; | |
| ini_set('display_errors', false); | |
| ini_set('display_startup_errors', true); | |
| ini_set('newrelic.appname', 'gilad-dev'); | |
| error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING); | 
| import Data.List | |
| import qualified Data.Map.Strict as Map | |
| import Data.Ord (comparing) | |
| wordFrequency :: (Ord a) => [a] -> Map.Map a Int | |
| wordFrequency xs = foldr (\word acc -> Map.insertWith (+) word 1 acc) Map.empty xs | |
| nBiggest :: Int -> Map.Map a Int -> [(a, Int)] | |
| nBiggest n m = take n $ sortBy (comparing $ negate . snd) $ Map.toList m | 
| export class Request { | |
| ajax = $.ajax; | |
| baseURL = API_BASE_URL; | |
| contentType = 'application/json'; | |
| data = null; | |
| dataType = 'json'; | |
| global = true; | |
| method = 'GET'; | |
| params = null; | |
| paramsSerializer = defaultParamsSerializer; | 
| buildscript { | |
| ext { | |
| springBootVersion = '2.0.2.RELEASE' | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
| } | 
| package main | |
| import ( | |
| "fmt" | |
| "hash/fnv" | |
| "math/rand" | |
| "os" | |
| "github.com/docker/docker/pkg/namesgenerator" | |
| ) | 
| @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; | 
| 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 - && \ | 
| <?php | |
| class State { | |
| public $foo = 0; | |
| } | |
| class Mutator { | |
| public function mutateState(State $state) { | |
| $state->foo = 4; | |
| } | 
| public static final Scheduler scheduler = Schedulers.fromExecutorService(new ThreadPoolExecutor(4, 10, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>())) |