Skip to content

Instantly share code, notes, and snippets.

View darK-Zi0n-te4am-cr3vv's full-sized avatar

DZTC darK-Zi0n-te4am-cr3vv

View GitHub Profile
@darK-Zi0n-te4am-cr3vv
darK-Zi0n-te4am-cr3vv / kxunit.c
Created November 28, 2012 22:22
FCKING AWESOME UNIT TESTS
STRUCT(KT_TEST_CONTEXT)
{
CHAR *CurrentCase;
INT AssertionsCount;
INT FailCount;
};
static KT_TEST_CONTEXT TestContext;
VOID KtAssert(BOOL Condition, CHAR *FailMessage, INT Line)
@darK-Zi0n-te4am-cr3vv
darK-Zi0n-te4am-cr3vv / etc..init..openvpn-instance.conf
Created August 9, 2012 22:12
Starting OpenVPN using Ubuntu Upstart
description "OpenVPN service instance"
author "C.c <[email protected]>"
stop on runlevel [016]
respawn
instance $CONFIG_FILE
@darK-Zi0n-te4am-cr3vv
darK-Zi0n-te4am-cr3vv / client-connect.sh
Created August 9, 2012 22:04
Configuring OpenVPN to obtain client IPs from MySQL table
#!/bin/bash
# this script queries client IP from DB and pushes to client
LOG_FILE=$0.log
# env
# CLIENT_NAME=$2
CLIENT_NAME=$common_name
CLIENT_CONFIG_FILE=$1