Skip to content

Instantly share code, notes, and snippets.

View 4f2e-solo's full-sized avatar
🎯
Focusing

solo 4f2e-solo

🎯
Focusing
View GitHub Profile
@wszgxa
wszgxa / ios document title refreash in vue-router
Created August 7, 2016 07:51
ios document title refreash in vue-router
``` js
/**
* fix ios title刷新不了的bug
* @iframeLoad
* @author hiluluke
*/
const iframeLoad = function (src) {
let iframe = document.createElement('iframe')
iframe.style.display = 'none'
iframe.src = src
@kryss
kryss / 撤掉X5情愿书
Last active April 30, 2021 16:50
撤掉X5情愿书
我是一个普通的H5开发者,我们花了10来个月做了一款微信应用,
但是因为最新版本的微信,选择使用了还没成熟的X5浏览器,
导致我们的应用在安卓版上完全无法使用 REST H5特效。
我相信这个世界上还有很多和我一样,因为这个问题头痛的开发猿。
所以希望能通过这个请愿书,感动TX的领导们,你们向他们学习:https://github.com/crosswalk-project/crosswalk
希望你们不要让我们开发者失望,X5真的是没法用,而且也没法改成能用,很多项目真的等不了。
如果你是开发猿请加颗星,希望能通过群众的响应改善大家的开发环境。
@k33g
k33g / index.html
Last active April 18, 2019 05:49
Vue.js + ES6
<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>
@dominicsayers
dominicsayers / elasticsearch.md
Last active August 12, 2024 08:14
Configuring ElasticSearch to use less memory

What I actually did

/etc/security/limits.conf

elasticsearch hard memlock 100000

/etc/default/elasticsearch

@nikmartin
nikmartin / A: Secure Sessions Howto
Last active July 29, 2025 11:54
Secure sessions with Node.js, Express.js, and NginX as an SSL Proxy
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.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active October 31, 2025 20:47
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@simme
simme / Install_tmux
Created October 19, 2011 07:55
Install and configure tmux on Mac OS X
# 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/