Skip to content

Instantly share code, notes, and snippets.

View devfelipereis's full-sized avatar

Felipe Gonçalves dos Reis devfelipereis

View GitHub Profile
@devfelipereis
devfelipereis / php-pools.md
Created March 27, 2020 17:01 — 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/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
<?php
namespace App\Services;
use File;
use Nesk\Puphpeteer\Puppeteer;
class PDFService
{
public function generateFromURL(String $url, String $fileName, String $savePath = ''): void
@devfelipereis
devfelipereis / estados-cidades.json
Created May 6, 2021 14:59 — forked from letanure/estados-cidades.json
JSON estados cidades do brasil, dividido por estados. segunda lista atualizada em 2020, dados do IBGE
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",