time.google.com
time1.google.com
time2.google.com
time3.google.com
#!/bin/bash | |
# pull all git repositories in a directory | |
pull_repo() { | |
echo "pulling $1 ..." | |
if git pull; then # >/dev/null 2>&1 | |
echo -e "pulling $1 succeed\n" | |
else | |
echo -e "pulling $1 failed\n" |
osascript <<EOT | |
display dialog "MD5: | |
$(openssl md5 $1 | awk '{print $2}') | |
SHA1: | |
$(openssl sha1 $1 | awk '{print $2}') | |
SHA256: | |
$(openssl dgst -sha256 $1 | awk '{print $2}')" with title "$(basename $1)" with icon Caution | |
EOT |
# This would go into .bash_profile, .bashrc, .zshrc, etc. | |
# Script to start the gpg-agent - in it's own file as it is also used when the machine starts up | |
# Be sure to update the path to wherever you place this file! | |
# Note, depending on shell you may not need this line enabling, if the global daemon is already running | |
# OK. Some shells complain, others don't! | |
~/bin/startup-gpg-agent.sh | |
# GPG | |
if [ -f "${HOME}/.gpg-agent-info" ]; then |
Set of scripts to deploy locally, vault and configure TLS server and user certificates for testing TLS AUTH.
credit to @reard3n (https://github.com/reard3n) and @v6 (https://github.com/v6) for the gist this grew from
This was tested using Vagrant and Ubuntu
#!/bin/bash | |
SCRIPT=$(basename "$0") | |
exitWithError () { | |
echo -e "$1" 1>&2 | |
exit 1 | |
} | |
usage () { |