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 | |
TESTDOMAIN="$1" | |
if test -z "$TESTDOMAIN" ; then | |
cat << EOF | |
Usage: $0 test.domain. | |
EOF | |
exit 1 | |
fi |
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/python3 | |
# | |
# Someone said that this is actually faster than using an if statement | |
# https://twitter.com/flibitijibibo/status/1037011978600898560 | |
# | |
# output: | |
# Running each function 100000000 times. | |
# isEqual_if(n=1.1,m=1.1), total 15.401655944995582, each 1.5401655944995582e-07. | |
# isEqual_if(n=1.1,m=0.1), total 15.192942995985504, each 1.5192942995985504e-07. | |
# isEqual_exception(n=1.1,m=1.1), total 41.77682093999465, each 4.177682093999465e-07. |
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 -*- | |
__author__ = "Adrien Pujol - http://www.crashdump.fr/" | |
__copyright__ = "Copyright 2013, Adrien Pujol" | |
__license__ = "Mozilla Public License" | |
__version__ = "0.3" | |
__email__ = "[email protected]" | |
__status__ = "Development" | |
__doc__ = "Check a TLS certificate validity." |