Skip to content

Instantly share code, notes, and snippets.

@n0rc
n0rc / tinc-graph.wsgi
Last active January 13, 2018 19:08
wsgi script to get the current tinc graph as png image
# coding: utf-8
import os
import re
import time
from subprocess import Popen, PIPE, check_output
from urlparse import parse_qs
re_filter = re.compile(r' \w+ \[label = "[^"]+", color = "red"];\n')