Skip to content

Instantly share code, notes, and snippets.

@descilla
descilla / node.js.diff
Created January 23, 2016 17:13
iframes for statistics
diff --git a/lib/infobox/node.js b/lib/infobox/node.js
old mode 100644
new mode 100755
index 664c9da..cc00bae
--- a/lib/infobox/node.js
+++ b/lib/infobox/node.js
@@ -166,7 +166,16 @@ define(["moment", "numeral", "tablesort", "tablesort.numeric"],
content = document.createElement("img")
content.src = o.thumbnail.replace("{NODE_ID}", nodeId)
}
@descilla
descilla / proportions.js.diff
Created January 23, 2016 17:15
enable iframe for statistics
diff --git a/lib/proportions.js b/lib/proportions.js
old mode 100644
new mode 100755
index fdad203..a4cd95a
--- a/lib/proportions.js
+++ b/lib/proportions.js
@@ -33,6 +33,15 @@ define(["chroma-js", "virtual-dom", "numeral-intl", "filters/genericnode" ],
content = document.createElement("img")
content.src = o.thumbnail
}
/*
============================================================================
Name : map_algo.c
Author : S. Wüllhorst
Version :
Copyright : foo bar
Description : Hello World in C, Ansi-style
============================================================================
*/
public interface GenericFunction<X,Y> {
public void f(X x, Y y);
}
public class GenericMap{
public <X,Y>void map(X[] x, Y[] y, GenericFunction<X,Y>fx) throws IllegalArgumentException{
int i;
if(x.length != y.length){
throw new IllegalArgumentException("Length of x[] and y[] is not the same");
#define OSMP_MAX_MESSAGE_PROC 16
#define OSMP_MAX_SLOTS 256
#define OSMP_MAX_PAYLOAD_LENGTH 128
/**
* This struct stores general informations about the shared memory. Like (planned) amount of processes which will attach to SM or the offset in SM of other structs. This struct only exists once per SM and must be defined at the beginning of the SM segment.
*
@descilla
descilla / kea.py
Created January 14, 2017 19:21
Script for getting isc-kea stats from control-socket
#!/usr/bin/python
import socket,os,json
BUFF_SIZE = 1024
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
s.connect("/var/kea/control.sock")
s.send('{"command":"statistic-get-all","arguments":{}}')
result = ""
part = s.recv(BUFF_SIZE)
while len(part) == BUFF_SIZE:

server 1

  • Hoster: Hetzner
  • Rechenzentrum: RZ16

iperf3 ipv4

root@deshyper-01 ~ # iperf3 -V -s
iperf 3.0.11