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
git log --shortstat --since="1 year ago" --until="now" \ | |
| grep "files changed\|Author\|Merge:" \ | |
| awk '{ \ | |
if ($1 == "Author:") {\ | |
currentUser = $2;\ | |
}\ | |
if ($2 == "files") {\ | |
files[currentUser]+=$1;\ | |
inserted[currentUser]+=$4;\ | |
deleted[currentUser]+=$6;\ |
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
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:->$(__git_ps1 " (%s)")\$ ' |
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
git log --shortstat --since="2011-9-1" --until="2011-11-15" \ | |
| grep "commit\|Author\|Merge:" \ | |
| awk '{\ | |
if ($1 == "Merge:") {\ | |
merge = 1;\ | |
}\ | |
if ($1 == "commit") {\ | |
merge = 0;\ | |
commit = $2;\ | |
}\ |
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
git log\ | |
| grep "Merge pull request.*{INSERT STORY ID HERE}" -B 5\ | |
| awk '{\ | |
if ($1=="commit") {\ | |
print system("git diff " $2 "^ " $2);\ | |
}\ | |
}' |
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
git log --shortstat --since="3 weeks ago" --until="now" \ | |
| grep "Merge pull request" -B 5\ | |
| awk '{\ | |
if ($1=="commit") {\ | |
output = system("git diff " $2 "^ " $2 " {YOUR FILE HERE}");\ | |
if (output) {\ | |
print output;\ | |
}\ | |
}\ | |
}' |
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($) { | |
$('*').each(function() { | |
var e = $.data(this, 'events'); | |
if(!e) return; | |
for(var p in e) { | |
$(this).bind(p, {event:p, name: this.tagName + '.' + this.className}, function(event) { | |
console.log(event.data.name + " triggered " + event.data.event); | |
}); | |
}; | |
}); |
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
Do the following to fix this error. | |
ttidwell@a:~:->$ sudo lsof|grep 9000 | |
sshd 31533 ttidwell 9u IPv6 506614 0t0 TCP [::1]:9000 (LISTEN) | |
sshd 31533 ttidwell 10u IPv4 506615 0t0 TCP localhost:9000 (LISTEN) | |
ttidwell@a:~:->$ kill 31533 |
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
/** | |
* Add this to your module file. | |
*/ | |
function mymodule_init() { | |
drupal_add_js('http://192.168.1.5:8080/target/target-script-min.js#anonymous', array( | |
'type' => 'external', | |
'group' => JS_LIBRARY, | |
'weight' => -1000 | |
)); | |
} |
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
// Conditionally loads scripts. | |
var loadScripts = function(params) { | |
// Iterate over each source. | |
var eachSource = function(callback) { | |
if (typeof params.scripts == 'string') { | |
callback(params.scripts); | |
} | |
else { | |
for (var i=0; i < params.scripts.length; i++) { |
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
git update-index --assume-unchanged sites/default/settings.php |
OlderNewer