/etc/security/limits.conf
elasticsearch hard memlock 100000
/etc/default/elasticsearch
| ``` js | |
| /** | |
| * fix ios title刷新不了的bug | |
| * @iframeLoad | |
| * @author hiluluke | |
| */ | |
| const iframeLoad = function (src) { | |
| let iframe = document.createElement('iframe') | |
| iframe.style.display = 'none' | |
| iframe.src = src |
| 我是一个普通的H5开发者,我们花了10来个月做了一款微信应用, | |
| 但是因为最新版本的微信,选择使用了还没成熟的X5浏览器, | |
| 导致我们的应用在安卓版上完全无法使用 REST H5特效。 | |
| 我相信这个世界上还有很多和我一样,因为这个问题头痛的开发猿。 | |
| 所以希望能通过这个请愿书,感动TX的领导们,你们向他们学习:https://github.com/crosswalk-project/crosswalk | |
| 希望你们不要让我们开发者失望,X5真的是没法用,而且也没法改成能用,很多项目真的等不了。 | |
| 如果你是开发猿请加颗星,希望能通过群众的响应改善大家的开发环境。 |
| <div id="demo"> | |
| <h1>{{bob.fields.firstName}} {{bob.fields.lastName}}</h1> | |
| </div> | |
| <ul id="humans-list"> | |
| <li v-repeat="humans"> | |
| {{fields.firstName}} {{fields.lastName}} | |
| </li> | |
| </ul> |
| Secure sessions are easy, but not very well documented. | |
| Here's a recipe for secure sessions in Node.js when NginX is used as an SSL proxy: | |
| The desired configuration for using NginX as an SSL proxy is to offload SSL processing | |
| and to put a hardened web server in front of your Node.js application, like: | |
| [NODE.JS APP] <- HTTP -> [NginX] <- HTTPS -> [PUBLIC INTERNET] <-> [CLIENT] | |
| Edit for express 4.X and >: Express no longer uses Connect as its middleware framework, it implements its own now. |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |