Skip to content

Instantly share code, notes, and snippets.

View rda0's full-sized avatar
💭
booting a kernel

Sven Mäder rda0

💭
booting a kernel
  • Switzerland
View GitHub Profile
@rda0
rda0 / simple-static-tc-for-openvpn.sh
Last active February 25, 2019 17:47
Script to create tc filters and classes
#!/bin/bash
dev="eth0"
ip_local="10.8.0.0"
cut_ip_local() {
if [ -n "$ip_local" ]; then
ip_local_byte1=`echo "$ip_local" | cut -d. -f1`
ip_local_byte2=`echo "$ip_local" | cut -d. -f2`
fi
@rda0
rda0 / ntpq.py
Last active September 25, 2017 15:43 — forked from pcn/ntpq.py
A subset of ntqp in python based on ntp python lib, modified for python3
#!/usr/bin/env python3
# pragma pylint: disable=bad-whitespace
###############################################################################
# ntpq.py - Python NTP control library.
# Copyright (C) 2017 Sven Mäder (@rda0 on github)
# Copyright (C) 2016 Peter C. Norton (@pcn on github)
#
# this addition to ntplib is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by the