Skip to content

Instantly share code, notes, and snippets.

denji /
Last active July 20, 2024 17:33
NGINX tuning for best performance

Moved to git repository:

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.

return1 / trim_enabler.txt
Last active May 26, 2024 11:01
TRIM Enabler for OS X Yosemite 10.10.3
# UPDATE for 10.10.4+: please consider this patch obsolete, as apple provides a tool called "trimforce" to enable trim support for 3rd party SSDs
# just run "sudo trimforce enable" to activate the trim support from now on!
# Original version by Grant Parnell is offline (
# Update July 2014: no longer offline, see
# Looks for "Apple" string in HD kext, changes it to a wildcard match for anything
# Alternative to
fnando / dev.conf
Created July 23, 2011 09:00
Nginx configuration for SSH tunnel
upstream tunnel {
server {
listen 80;
location / {
proxy_set_header X-Real-IP $remote_addr;
stagas / how-to-run-apache-and-node.js-together-the-right-way.markdown
Created December 24, 2010 14:45
How to run Apache and Node.js together (the right way)

Step 1

Get a VPS that offers 2 or more IP addresses.

Step 2

From the WHM cPanel, find the menu item Service Configuration, select Apache Configuration and then click on Reserved IPs Editor.

Step 3

mckeed / zigbee_catchall
Last active November 3, 2020 18:06
Catchall ZigBee packet format
profile ID: 2
cluster ID: 2
source EP: 1
dest EP: 1
options: 2
type: 1
source: 2
clustersp: 1
mfgsp: 1
Lewiscowles1986 /
Last active November 8, 2019 00:17
Raspberry Pi PHP7, Nginx 1.9 Installer
if [ "$EUID" -ne 0 ]
then echo "Must be root"
apt-get update -y
apt-get upgrade -y
apt-get dist-upgrade -y
baloo247 / gist:dfb47f1f5c1aa04eb47f1060bdd3aed0
Last active August 25, 2017 03:39
Celcus TV Youtube: Smartthings DTH
* Celcus TV Smartthings Integration, Currently testing on: CEL-48UHDSB-16/1
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at: