http://blogs.msdn.com/b/wesdyer/archive/2007/01/18/why-functional-programming-is-important-in-a-mixed-environment.aspx http://diditwith.net/PermaLink,guid,f3be3915-873b-4082-a087-871f5dd52c82.aspx
This file contains hidden or 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
ln -s /dev/null php.log |
This file contains hidden or 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
# http://stackoverflow.com/questions/9834689/compare-two-branches-in-git | |
# https://www.kernel.org/pub/software/scm/git/docs/git-diff.html | |
# Normal diff | |
git diff a_branch..master | |
# Only filenames | |
git diff --numstat a_branch..master |
This file contains hidden or 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
Object.prototype.test = function(){ console.log('an object')}; | |
Array.prototype.test = function(){ console.log('an array')}; | |
Number.prototype.test = function(){ console.log('a number')}; | |
var a = {}; | |
a.test(); // prints "an object" | |
a = []; | |
a.test(); // prints "an array" |
This file contains hidden or 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
rundll32.exe keymgr.dll, KRShowKeyMgr |
This file contains hidden or 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
# From http://stackoverflow.com/a/8741530 | |
git filter-branch --index-filter 'git rm --cached --ignore-unmatch Smarty/templates_c/*' --tag-name-filter cat -- --all |
This file contains hidden or 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
# From http://stackoverflow.com/a/7448828/1647507 | |
find . -type f -exec stat --format '%Y :%y %n' {} \; | sort -nr | cut -d: -f2- | head |
This file contains hidden or 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
-- http://dba.stackexchange.com/questions/13083/cant-remove-grant-usage | |
-- in host, use '%' as wildcard | |
grant usage on *.* to 'user'@'host' identified by 'password'; | |
grant all privileges on database.* to 'user'@'host'; | |
show grants; | |
show grants for user; | |
show grants for user@host; | |
grant super on *.* to 'user'@'host' identified by 'password'; |
This file contains hidden or 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
# for . | |
du -chs | |
# for any | |
du -chs any |
This file contains hidden or 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(){ | |
var a = function(){ | |
var y = document.createElement('script'); | |
y.onload = function(){ jQuery(document).fartscroll(600) }; | |
y.src="https://raw.github.com/theonion/fartscroll.js/master/fartscroll.js"; | |
document.head.appendChild(y); | |
}; | |
if(typeof jQuery == 'undefined') { | |
var x = document.createElement('script'); | |
x.onload = a; |