I hereby claim:
- I am vy on github.
- I am vy (https://keybase.io/vy) on keybase.
- I have a public key whose fingerprint is F1A5 FC81 7614 255A 8E44 1A9A D37D 4387 C9BD 368E
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
if [ $# -ne 3 ]; then | |
echo "Usage: $0 <ADDR_TMPL> <N_WORKERS> <TIMEOUT>" | |
exit 1 | |
fi | |
ADDR_TMPL="$1" | |
N_WORKERS="$2" |
#!/bin/bash | |
__BIN="$0" | |
__ACT="$1"; shift | |
__ARG=("$@") | |
set -e | |
OVS_HOME="$HOME/usr-openvswitch" | |
OVS_VERSION="1.4.1" |
#ifndef MERGE_NODE_ALGORITHM_HPP | |
#define MERGE_NODE_ALGORITHM_HPP | |
template <class T> | |
class MergeNodeAlgorithm { | |
public: | |
virtual bool empty() const = 0; | |
virtual void pop() = 0; | |
virtual T get() const = 0; |
/** | |
* Returns shortest paths between all pairs using Floyd-Warshall algorithm. | |
* Nodes are assumed to be enumerated without any holes and enumeration | |
* starts from 0. | |
* | |
* @param nodes the set of vertices | |
* @param links the map of edges with costs | |
* @return shortest paths between all pairs, including the source and destination | |
*/ | |
def allPairsShortestPath(nodes: Set[Int], links: Map[Int, Set[Int]]): Map[Int, Map[Int, Seq[Int]]] = { |
import com.google.common.collect.Lists; | |
import com.google.common.collect.Maps; | |
import java.util.*; | |
/** | |
* Implements methods to compute the shortest minimax paths in a graph. | |
* | |
* A minimax path is the shortest length path such that the | |
* maximum edge weight along a path is minimum. (See the Wikipedia <a |
tc qdisc add dev eth0 root handle 1: prio | |
tc qdisc add dev eth0 parent 1:3 handle 30: netem delay 5s | |
tc filter add dev eth0 protocol ip parent 1:0 u32 match ip sport 34001 0xffff flowid 1:3 |
I hereby claim:
To claim this, I am signing this object:
package com.vlkan.demo.spring; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import javax.annotation.PostConstruct; |
package com.experiment.pubsub.pubsubdriver; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import reactor.core.publisher.Flux; | |
import reactor.core.publisher.Mono; | |
import reactor.core.scheduler.Scheduler; | |
import reactor.core.scheduler.Schedulers; | |
import java.time.Duration; |
package com.vlkan; | |
import com.zaxxer.hikari.HikariConfig; | |
import com.zaxxer.hikari.HikariDataSource; | |
import com.zaxxer.hikari.metrics.prometheus.PrometheusMetricsTrackerFactory; | |
import io.micrometer.core.instrument.Clock; | |
import io.micrometer.core.instrument.MeterRegistry; | |
import io.micrometer.prometheus.PrometheusConfig; | |
import io.micrometer.prometheus.PrometheusMeterRegistry; | |
import io.prometheus.client.CollectorRegistry; |