added .bash_functions file

This commit is contained in:
Brendan McDevitt 2016-10-15 08:05:02 -05:00
parent a7cccbe38f
commit d022f9a874
2 changed files with 27 additions and 1 deletions

26
.bash_functions Normal file
View file

@ -0,0 +1,26 @@
### list of functions to source ###
randpw()
{
openssl rand -base64 12
}
cipher_check()
{
nmap --script ssl-enum-ciphers "$1"
}
check_gzip()
{
curl -I -H 'Accept-Encoding: gzip,deflate' "$1" 2> /dev/null | grep --color 'Content-Encoding' && 'echo gzip enabled' || echo 'gzip not enabled'
}
ns()
{
dig +short "$1"
}
mx()
{
dig +short MX "$1"
}

View file

@ -6,7 +6,7 @@
Source all of the files. Feel free to add to a script or just on cmd line
for DOTFILE in `find $HOME/.dotfiles`
for DOTFILE in `find $HOME/dotfiles`
do
[ -f “$DOTFILE” ] && source “$DOTFILE”
done