Skip to content

Instantly share code, notes, and snippets.

View ustims's full-sized avatar

Ustimenko Sergey ustims

View GitHub Profile
@ustims
ustims / git_brahchlog
Created October 20, 2013 17:39
Git log commits to current branch without trash that comes after pull
git config --global alias.branchlog "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit origin/live..HEAD"
mysql -h hostName -u userName -p -D dbName -A -B -e "select * from someTable where created > '2013-06-01 00:00' and created < '2013-07-01 00:00';" | sed "s/'/\'/;s/\t/\",\"/g;s/^/\"/;s/$/\"/;s/\n//g" > temp/generated-month-201306.csv