Skip to content

Commit

Permalink
v0.1.61
Browse files Browse the repository at this point in the history
  • Loading branch information
Release Bot committed Mar 17, 2018
1 parent c09a8b5 commit 33219ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 23 deletions.
33 changes: 11 additions & 22 deletions bash/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -318,27 +318,11 @@ extract() {
fi
}

# Generates a random password
# randompwd: Function to generates a strong random password of 20 characters
# https://www.gnu.org/software/sed/manual/html_node/Character-Classes-and-Bracket-Expressions.html
function randompwd() {
if [ -z $1 ]; then
MAXSIZE=10
else
MAXSIZE=$1
fi
array1=(
q w e r t y u i o p a s d f g h j k l z x c v b n m Q W E R T Y U I O P A S D
F G H J K L Z X C V B N M 1 2 3 4 5 6 7 8 9 0
\! \@ \$ \% \^ \& \* \! \@ \$ \% \^ \& \* \@ \$ \% \^ \& \*
)
MODNUM=${#array1[*]}
pwd_len=0
while [ $pwd_len -lt $MAXSIZE ]
do
index=$(($RANDOM%$MODNUM))
echo -n "${array1[$index]}"
((pwd_len++))
done
echo
cat /dev/urandom | LC_CTYPE=C tr -dc [:alnum:],[:alpha:],[:punct:] | fold -w 256 | head -c 20 | sed -e 's/^0*//'
echo
}

# mcd: Function to makes new Dir and jumps inside
Expand Down Expand Up @@ -401,9 +385,11 @@ export ANT_HOME
MAVEN_HOME="$(brew --prefix)/Cellar/maven/3.5.2/libexec"
export MAVEN_HOME

export M2=$MAVEN_HOME/bin
M2=$MAVEN_HOME/bin
export M2

export GIT_EDITOR="atom"
GIT_EDITOR="atom"
export GIT_EDITOR

ANDROID_HOME="$HOME/Library/Android/sdk/"
export ANDROID_HOME
Expand All @@ -420,6 +406,9 @@ export PATH
PATH="$(brew --prefix)/sbin:$PATH"
export PATH

PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
export PATH

# ---------------------------------------------------------------------------
# 9. Reminders & Notes
# ---------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reedia-dotfiles",
"version": "0.1.59",
"version": "0.1.61",
"description": "Dotfiles - A set of Mac OS X configuration files",
"keywords": [
"dotfiles",
Expand Down

0 comments on commit 33219ff

Please sign in to comment.