This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://gist.github.com/egonbraun/7176976fe05ece092410462facf0adb6 | |
# OpenVPN configuration Directory | |
OPENVPN_CFG_DIR=/etc/openvpn | |
# Where this script should create the OpenVPN client config files | |
OUTPUT_DIR=~/ovpn-mfa/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""time.process_time() and time.perf_counter() for Python 2 on Ubuntu.""" | |
import ctypes | |
import errno | |
from ctypes.util import find_library | |
from functools import partial | |
CLOCK_PROCESS_CPUTIME_ID = 2 # time.h | |
CLOCK_MONOTONIC_RAW = 4 | |
clockid_t = ctypes.c_int |