Skip to content

Instantly share code, notes, and snippets.

server 1

  • Hoster: Hetzner
  • Rechenzentrum: RZ16

iperf3 ipv4

root@deshyper-01 ~ # iperf3 -V -s
iperf 3.0.11
@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:
#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.
*
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");
/*
============================================================================
Name : map_algo.c
Author : S. Wüllhorst
Version :
Copyright : foo bar
Description : Hello World in C, Ansi-style
============================================================================
*/
@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
}
@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)
}
geo $switch {
default 0;
#FanLin-HuoJian
2a03:2260:115:0:6a72:51ff:fe08:86fc 1;
#cafe-med-aussen
2a03:2260:115:0:6a72:51ff:fe20:ab80 1;
#kgbvax-m2-f-nnw
2a03:2260:115:0:6a72:51ff:fe24:e29e 1;
#00Q_Campus-Nienberge_X1
2a03:2260:115:0:c66e:1fff:febd:44e 1;
geo $switch {
default 0;
#Schlossgarten-Cafe-03
2a03:2260:115:0:ea94:f6ff:fe6d:26fc 1;
#Heidhorn-Freifunk-Outdoor-1
2a03:2260:115:0:6a72:51ff:fe2e:e40d 1;
#Sportschuetzen-Hiltrup-Outdoor
2a03:2260:115:0:6a72:51ff:fe2c:e33c 1;
#Gazelle_03
2a03:2260:115:0:ea94:f6ff:fe29:da12 1;
geo $switch {
default 0;
#Infopunkt-Hiltrup
2a03:2260:115:0:16cc:20ff:fe70:b69e 1;
#anaptis
2a03:2260:115:0:c66e:1fff:fe87:6a40 1;
#Freifunk-Rumphorst-01
2a03:2260:115:0:32b5:c2ff:feb0:74fa 1;
#00Q_Johann-Krane-Weg_8_X1
2a03:2260:115:0:eade:27ff:fe3c:181e 1;