https://www.kb.cert.org/vuls/id/605641/
1.23.0 - https://github.com/grpc/grpc-java/releases/tag/v1.23.0
| # Copyright 2019 The Knative Authors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| #!/bin/bash | |
| set -Eeuo pipefail | |
| get_health_status() { | |
| curl --request GET http://localhost:8080/actuator/health 2> /dev/null | jq --raw-output '.status' | |
| } | |
| main() { | |
| while [ "$(get_health_status)" != "UP" ]; do |
| import net.jqwik.api.ForAll | |
| import net.jqwik.api.Property | |
| // requires compiler option '-Xallow-result-return-type' | |
| fun <T, U> Result<T>.flatMap(function: (T) -> Result<U>): Result<U> { | |
| return if (isSuccess) { | |
| function(getOrNull()!!) | |
| } else { | |
| Result.failure(this.exceptionOrNull()!!) | |
| } |
| [ | |
| { | |
| "instructions": "Find the number of movies", | |
| "solution": "MATCH (m: Movie) RETURN COUNT(m);" | |
| }, | |
| { | |
| "instructions": "Find the number of action movies", | |
| "solution": "MATCH (m: Movie {genre: 'Action'}) RETURN COUNT(m);" | |
| }, | |
| { |
| package main | |
| import ( | |
| "testing" | |
| "testing/quick" | |
| ) | |
| func TestSlicePrepend(t *testing.T) { | |
| f := func(head string, tail []string) bool { | |
| result := prepend(head, tail) |
| echo | |
| echo "Configuring zsh" | |
| brew install grc | |
| brew install coreutils | |
| brew install watch | |
| brew install z | |
| touch ~/.z | |
| brew install zsh zsh-completions | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| cp files/dircolors.ansi-dark ~/.dircolors |
| import org.assertj.core.util.Maps; | |
| import org.springframework.context.ApplicationContextInitializer; | |
| import org.springframework.context.ConfigurableApplicationContext; | |
| import org.springframework.core.env.MapPropertySource; | |
| import java.util.Map; | |
| import static org.springframework.util.SocketUtils.findAvailableTcpPort; | |
| public class CustomContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { |
| 2018-01-02 13:29:13 | |
| Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.151-b12 mixed mode): | |
| "Attach Listener" #151 daemon prio=9 os_prio=0 tid=0x00007f6b89288800 nid=0x219a waiting on condition [0x0000000000000000] | |
| java.lang.Thread.State: RUNNABLE | |
| "BuilderThread 3" #76 prio=5 os_prio=0 tid=0x00007f6b89285800 nid=0x1bac waiting on condition [0x00007f6b6eb34000] | |
| java.lang.Thread.State: WAITING (parking) | |
| at sun.misc.Unsafe.park(Native Method) | |
| - parking to wait for <0x00000000807ff168> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) |
| import org.junit.rules.TestRule; | |
| import org.junit.runner.Description; | |
| import org.junit.runners.model.Statement; | |
| import org.neo4j.graphdb.GraphDatabaseService; | |
| import org.neo4j.graphdb.Transaction; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import java.util.function.BiFunction; |