This file contains hidden or 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
| #Description: OSX Git Prompt - make your git repo prompts look pretty | |
| #Installation: In your .bash_profile, add a line: source .gitprompt | |
| #FileName: .gitprompt | |
| #Owner: Mark Evans: | |
| #Stolen From: http://asemanfar.com/Current-Git-Branch-in-Bash-Prompt | |
| #also install git complet: brew install git bash-completion | |
| c_cyan=`tput setaf 6` | |
| c_red=`tput setaf 1` | |
| c_green=`tput setaf 2` | |
| c_sgr0=`tput sgr0` |
This file contains hidden or 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
| [user] | |
| name = Mark Evans | |
| email = my@emailaddress.com | |
| [color] | |
| branch = auto | |
| diff = auto | |
| interactive = auto | |
| status = auto | |
| ui = auto | |
| [color "branch"] |
This file contains hidden or 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
| function generatePassword($length=6,$level=2){ | |
| list($usec, $sec) = explode(' ', microtime()); | |
| srand((float) $sec + ((float) $usec * 100000)); | |
| $validchars[1] = "0123456789abcdfghjkmnpqrstvwxyz"; | |
| $validchars[2] = "0123456789abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
| $validchars[3] = "0123456789_!@#$%&*()-=+/abcdfghjkmnpqrstvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_!@#$%&*()-=+/"; |
This file contains hidden or 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
| RED="\[\033[0;31m\]" | |
| YELLOW="\[\033[0;33m\]" | |
| GREEN="\[\033[0;32m\]" | |
| BLUE="\[\033[0;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| LIGHT_GRAY="\[\033[0;37m\]" | |
| COLOR_NONE="\[\e[0m\]" |
NewerOlder