Skip to content

Instantly share code, notes, and snippets.

View jcanepa's full-sized avatar

Julian Canepa jcanepa

View GitHub Profile
@jcanepa
jcanepa / php-pools.md
Last active January 25, 2024 17:42 — forked from holmberd/php-pools.md
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/php8.2-fpm.log.1 /var/log/php8.2-fpm.log
@jcanepa
jcanepa / rsa.py
Last active March 1, 2022 03:46 — forked from djego/rsa.py
A simple RSA implementation in Python
'''
RSA asymmetric cryptographic algorithm.
A simple proof of concept written in Python.
@author jcanepa
@url https://gist.github.com/jcanepa/37d80d4691f63097e6388bcf3dd0cf51
Forked from https://gist.github.com/djego/97db0d1bc3d16a9dcb9bab0930d277ff
'''
import random