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
user = mail_admin | |
password = mail_admin_password | |
dbname = mail | |
query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/') FROM users u JOIN (SELECT '%s' AS orig_email) x ON u.email = CASE WHEN LOCATE('+', x.orig_email) > 0 AND LOCATE('+', x.orig_email) < LOCATE('@', x.orig_email) THEN CONCAT(SUBSTRING_INDEX(x.orig_email, '+', 1), '@', SUBSTRING_INDEX(x.orig_email, '@', -1)) ELSE x.orig_email END | |
hosts = 127.0.0.1 |
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
// ==UserScript== | |
// @name GitHub Widescreen | |
// @namespace http://github.com | |
// ==/UserScript== | |
(function() { | |
var style = document.createElement("style"); | |
style.type = "text/css"; | |
style.innerHTML = "body .container{width:95%;min-width:920px;}"; | |
document.getElementsByTagName("head")[0].appendChild(style); | |
}()); |
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
location /oauth { | |
proxy_pass https://api.twitter.com; | |
proxy_hide_header X-Frame-Options; | |
} |
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
if (["bottom","height","left","right","top","width"].indexOf("width") != -1) { | |
// win | |
} |
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
if (",bottom,height,left,right,top,width,".indexOf(",width,") != -1) { | |
// win | |
} |
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
var regex = /^(bottom|height|left|right|top|width)$/; | |
if (regex.test("width")) { | |
// win | |
} |
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
var values = {bottom:1,height:1,left:1,right:1,top:1,width:1}; | |
if ("width" in values) { | |
// win | |
} |
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
var values = {bottom:1,height:1,left:1,right:1,top:1,width:1}; | |
if (values.hasOwnProperty("width")) { | |
// win | |
} |
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
var values = {bottom:1,height:1,left:1,right:1,top:1,width:1}; | |
if (values["width"]) { | |
// win | |
} |
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
make -C out BUILDTYPE=Release V=1 | |
make[1]: Entering directory `/home/chris/Downloads/node-v0.8.6/out' | |
make[1]: Nothing to be done for `all'. | |
make[1]: Leaving directory `/home/chris/Downloads/node-v0.8.6/out' | |
ln -fs out/Release/node node | |
python tools/install.py install | |
installing /usr/local/include/node/ares.h | |
installing /usr/local/include/node/ares_version.h | |
installing /usr/local/include/node/uv.h | |
installing /usr/local/include/node/v8-debug.h |
OlderNewer