NOTE: I like to prepend some of the commands with
time
just for curiosity’s sake to see how long it takes.
Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.
parse_git_branch () { | |
#git name-rev HEAD 2> /dev/null | sed -e 's/\^0$//' | sed 's#HEAD\ \(.*\)# (\1)#' | |
#git diff --shortstat | |
#git show --raw --abbrev-commit --date=local | |
#BR=$(git log --oneline -n 3 2>/dev/null) || { echo "$@"; exit; } | |
#br=$(git log --oneline -n 5 2>&1) || br="" | |
xr=$(git diff HEAD --stat 2>&1) || xr="" | |
br=$(git ph -n 7 2>&1) || br="" | |
echo "$xr" | |
echo "$br" |
~ cat /proc/cpuinfo; cat /etc/lsb-release ; uname -a | |
processor : 0 | |
vendor_id : GenuineIntel | |
cpu family : 6 | |
model : 26 | |
model name : Intel(R) Xeon(R) CPU W3520 @ 2.67GHz | |
stepping : 5 | |
cpu MHz : 2659.000 | |
cache size : 8192 KB | |
fdiv_bug : no |
NOTE: I like to prepend some of the commands with
time
just for curiosity’s sake to see how long it takes.
Go to System Preferences -> Sharing -> uncheck the Personal Web sharing. You will never turn Apache on/off here again.
$(this).select2({ | |
tags: $(this).data('tag-license-table'), | |
tokenSeparators: [",", " "] | |
}) | |
// values go between braces, and have looking format | |
// i.e key: value | |
Here is a longer example with deeper nesting |