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
| <RoutingRules> | |
| <RoutingRule> | |
| <Condition> | |
| <HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals> | |
| </Condition> | |
| <Redirect> | |
| <HostName>yourdomainname.com</HostName> | |
| <ReplaceKeyPrefixWith>#!/</ReplaceKeyPrefixWith> | |
| </Redirect> | |
| </RoutingRule> |
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
| { | |
| "env": { | |
| "node": true | |
| }, | |
| "ecmaFeatures": { | |
| "forOf": true, | |
| "arrowFunctions": true, | |
| "generators": true, | |
| "blockBindings": true, | |
| "binaryLiterals": true, |
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
| sudo sysctl -w net.inet.tcp.keepidle=20000 | |
| sudo sysctl -w net.inet.tcp.keepintvl=20000 | |
| sudo sysctl -w net.inet.tcp.keepinit=20000 | |
| sudo sysctl -w net.inet.tcp.always_keepalive=1 |
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 extend(obj) { | |
| Array.prototype.slice.call(arguments, 1).forEach(function (source) { | |
| if (source) { | |
| for (var key in source) { | |
| obj[key] = source[key]; | |
| } | |
| } | |
| }); | |
| return obj; | |
| } |
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
| var EventEmitter = require('events').EventEmitter; | |
| var MyClass = function () { | |
| // invoke base constructor - optionally with parameters | |
| EventEmitter.call(this); | |
| // initialization goes here | |
| // ... | |
| }; | |
| // copy base prototype |
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
| sudo chown -R $USER /usr/local |
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
| { | |
| "predef": [], | |
| "browser": true, | |
| "devel": true, | |
| "expr": true | |
| } |
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
| mogrify -resize 800x800\> *.* |
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 flattenArray(array) { | |
| var results = []; | |
| var self = arguments.callee; | |
| array.forEach(function(item) { | |
| Array.prototype.push.apply(results, Array.isArray(item) ? self(item) : [item]); | |
| }); | |
| return results; | |
| } |