Skip to content

Instantly share code, notes, and snippets.

@andycole
andycole / pre-commit
Created February 11, 2014 17:33
Pre commit hook to check for common debugs (belongs in ./git/hooks)
#!/usr/local/bin/bash
# Add or remove keywords here
KEYWORDS_REGEX="var_dump\(|die\(|Zend_Debug::|print_r\(|console\.(debug|info|log|warn)\("
# Add extensions to check here
EXTENSIONS_REGEX="(.php$|.phtml$|.js$|.html$)"
ERRORS_BUFFER=""
TEXT_DEFAULT="\\033[0;39m"
TEXT_INFO="\\033[1;32m"
TEXT_ERROR="\\033[1;31m"
//Block
.notification-popup {
width:100%;
height:100px;
}
//Element
.notification-popup_content {
color:black;
}
source ~/.git-completion.sh
alias gco='git co'
alias gci='git ci'
alias grb='git rb'
@andycole
andycole / .gitconfig
Last active January 11, 2023 09:26
My git config
## Basic colours
[color]
branch = auto
diff = auto
status = auto
interactive = auto
ui = auto
[color "branch"]
current = yellow bold