This file contains 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
# change lib/ apps/ to folders you worked in, remove grep php if you work not only with php files | |
git ls-tree --name-only -r HEAD lib/ apps/ | grep 'php' | xargs -n1 git blame -t -c -e | awk '{print $2}' | sort | uniq -c | |
# this will bring you number of lines each author contributed | |
# example: | |
# 14262 (<author@example.com> | |
# 364 (<noob@example.com> | |
# 3483 (<another@example.com> | |
# 36849 (<mastah@example.com> | |
# 48434 (<miami@blackcrystal.net> |
This file contains 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
/** | |
* read last line(s) from very large file | |
* | |
* @param string $filename filename to open | |
* @param integer $buffer Perfoorm search of last line in [buffer] bytes got from end of file | |
* | |
* @return string | |
*/ | |
function read_last_line(string $filename, int $buffer = 1024*1024 ) |
This file contains 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
#!/bin/bash | |
# this sctipt will change mysql root password in 3 seconds | |
# run it with one parameter - desired password | |
if [ -z "$1" ] | |
then | |
echo "Usage: $0 <new password>" | |
exit 1 | |
fi |
This file contains 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 ($) { | |
$.fn.html5Uploader = function (options) { | |
var crlf = '\r\n'; | |
var boundary = "iloveigloo"; | |
var dashes = "--"; | |
var settings = { | |
"name": "uploadedFile", |
This file contains 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
#!/bin/bash | |
SYMFREPO="git://symfony-git.git.sourceforge.net/gitroot/symfony-git/symfony-git" #this not works now | |
SYMFREPO="https://github.com/symfony/symfony1.git" | |
VENDOR_DIR="lib/vendor/symfony" | |
DBUSER="root" | |
DBPASS="" | |
AUTHOR="" |