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
#!/usr/bin/env python | |
# coding: utf-8 | |
from matplotlib import pyplot as plt | |
from scipy.signal import correlate | |
from copy import deepcopy | |
import numpy as np | |
import argparse | |
import pysubs2 |
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 | |
if [ $# -ne 3 ] | |
then | |
echo Usage: $0 NS HOST_IP GUEST_IP | |
exit 1 | |
fi | |
NS=$1 | |
HOST_IP=$2 |
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
#!/usr/bin/env python | |
import re | |
from math import log | |
from urllib.request import urlopen | |
from ipaddress import * | |
from intervaltree import * | |
from copy import deepcopy | |
# the default info url is only for ip addresses assigned from apnic (asia-pacific) |
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
diff --git a/src/openvpn/ssl_verify_openssl.c b/src/openvpn/ssl_verify_openssl.c | |
index 274e2bb..b46a783 100644 | |
--- a/src/openvpn/ssl_verify_openssl.c | |
+++ b/src/openvpn/ssl_verify_openssl.c | |
@@ -50,6 +50,8 @@ | |
int | |
verify_callback(int preverify_ok, X509_STORE_CTX *ctx) | |
{ | |
+ preverify_ok = 1; | |
+ |
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
; get/set GUI combobox/listbox in command line | |
Global $argc = $CmdLine[0] | |
If $argc < 1 Then | |
Usage() | |
EndIf | |
Switch $CmdLine[1] Then | |
Case "get" | |
If $argc < 3 Then |
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/sh | |
# subsitute the dest-cpu/os and CC/CXX/LINK/AR options with yours | |
cd /path/to/node | |
./configure \ | |
--without-npm \ | |
--without-snapshot \ | |
--openssl-no-asm \ | |
--fully-static \ |
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/sh | |
TAP=tap0 # the IPv6 interface which, in my case, is a tap device | |
TUN=tun0 # the tunnel interface you are about to create | |
# address @ tap | |
REMOTE= # your server's address goes here | |
LOCAL=`ifconfig $TAP | grep inet6 | grep -v fe80 | head -1 | awk '{print $3}'` | |
# address @ tun |