Skip to content

Instantly share code, notes, and snippets.

@carsonip
carsonip / ovpn_mfa_setup.sh
Last active October 11, 2019 06:59
OpenVPN Client Configuration Generate Script
#!/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/
@carsonip
carsonip / time33.py
Created April 15, 2019 09:04 — forked from zed/time33.py
time.process_time() and time.perf_counter() for Python 2 on Ubuntu.
"""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