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 bash | |
# Depends on curl and dig | |
TIMEOUT=1 | |
SERVER=4.2.2.3 | |
IP=`curl -s --connect-timeout "$TIMEOUT" https://outboundip.com 2>/dev/null` | |
#echo :$?: | |
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 bash | |
# NB: I use this on centos 6 but should work on other stuff | |
# | |
# Ensure that reverse DNS works so it can lookup its IP/hostname | |
# Also relies on "zip" and dig | |
# | |
# ....I should probably do some more checks on: | |
# Destination folders existence | |
# client cert is correctly inserted into the index | |
# host lookup worked |
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 bash | |
# See: https://gist.github.com/starkers/234909caf153904e5428 | |
#Check xpass exists | |
if [ ! -x "$(which xclip)" ]; then | |
echo "Please install xclip" ; exit 1 | |
fi | |
#Length of string: | |
LEN=32 |
NewerOlder