Skip to content

Instantly share code, notes, and snippets.

View pauiglesias's full-sized avatar
🏠
Working from home

Pau Iglesias pauiglesias

🏠
Working from home
View GitHub Profile
@holmberd
holmberd / php-pools.md
Last active April 19, 2024 07:24
Adjusting child processes for PHP-FPM (Nginx)

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@jkbnerad
jkbnerad / HHVM vs. PHP-FPM
Last active August 29, 2015 13:58
HHVM vs. PHP-FPM
Results (nginx 1.4.1):
HHVM (3.0)
Attempts: 10
Max: 194 ms
Min: 178 ms
---------------------------------
@willurd
willurd / web-servers.md
Last active May 4, 2024 07:22
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@brenes
brenes / README.md
Last active April 9, 2024 23:24
CSV de paises, con nombre en castellano, ingles, codigo ISO y prefijo telefónico del país