Skip to content

Instantly share code, notes, and snippets.

View RammusXu's full-sized avatar

RammusXu RammusXu

View GitHub Profile
@osk2
osk2 / tainshin-activity-auto-apply.js
Last active February 6, 2018 03:08
Auto apply Taishin activities
(function () {
var strings = {
id: '%E8%BA%AB%E5%88%86%E8%AD%89%E5%AD%97%E8%99%9F',
// id = "身分證字號"
tip: '%E5%97%A8%EF%BC%8C%E8%BC%B8%E5%85%A5%E5%BE%8C%E6%9C%83%E8%87%AA%E5%8B%95%E9%80%81%E5%87%BA%E5%93%A6%EF%BC%9A%EF%BC%89'
// tip = "嗨,輸入後會自動送出哦:)"
}
var id = prompt(decodeURIComponent(strings.id), 'A123456789');
if (id) {
@denji
denji / nginx-tuning.md
Last active April 28, 2025 20:57
NGINX tuning for best performance

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.