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
ssh [email protected] 'echo '`cat ~/.ssh/id_rsa.pub`' >> ~/.ssh/authorized_keys |
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
## Quick Setup | |
sudo apt-get install byobu | |
sudo apt-get install htop | |
sudo apt-get install openvpn | |
# sudo apt-get install bitlbee | |
sudo apt-get install irssi | |
# cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys | |
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
<?php | |
function test($x, $y, $z) { | |
var_dump(($x || $y) && ($z || $y)); | |
var_dump(($x && $z) || $y); | |
} | |
test(TRUE, TRUE, TRUE); | |
test(TRUE, FALSE, TRUE); | |
test(TRUE, TRUE, FALSE); | |
test(FALSE, FALSE, TRUE); |
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
<?php | |
// current table prefix to be removed | |
$prefix = "drup_"; | |
// echo generated statments rather then run them | |
$pretend = FALSE; | |
///////////////////////////////////////////////////////////////////// | |
$table_list = db_query("SHOW TABLES"); |
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
# REGULAR VERSION | |
gunzip -c db.sql.gz | grep -Ev "^INSERT INTO \`(cache_|search_|sessions|whatever)" | mysql -u root -p databasename | |
# DRUPAL VERSION | |
gunzip -c db.sql.gz | grep -Ev "^INSERT INTO \`(cache_|search_|sessions|whatever)" | drush sqlc |
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
### | |
# BEGIN MOBILE REDIRECTS | |
### | |
# If the skipMobileDetection cookie is set, and we're on the mobile domain, | |
# return to the normal domain. Do this only for SSL as Varnish will handle | |
# for port 80. | |
RewriteCond %{HTTP_COOKIE} skipmobiledetection [NC] | |
RewriteCond %{HTTP_HOST} ^m\. [NC] | |
RewriteCond %{SERVER_PORT} =443 |
OlderNewer