Skip to content

Instantly share code, notes, and snippets.

View Nekaravaev's full-sized avatar
🥽

Andrey Nekaravaev

🥽
  • Kraków, Poland
  • 07:02 (UTC +02:00)
View GitHub Profile
@holmberd
holmberd / php-pools.md
Last active April 16, 2025 07:11
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
@mutin-sa
mutin-sa / Top_Public_Recursive_Name_Servers.md
Last active April 15, 2025 21:26
List of Top Public Recursive Name Servers

DNS:

IPv4 Addr IPv6 Addr ASn Political Region Loc Svc Org
8.8.8.8 2001:4860:4860::8888 AS15169 US Worldwide (Anycast) Google Public DNS Google
8.8.4.4 2001:4860:4860::8844 AS15169 US Worldwide (Anycast) Google Public DNS Google
1.1.1.1 2606:4700:4700::1111 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
1.0.0.1 2606:4700:4700::1001 AS13335 US Worldwide (Anycast) Cloudflare-DNS Cloudflare/APNIC
95.85.95.85 2a03:90c0:999d::1 AS199524 EU *W
@iamakulov
iamakulov / index.md
Last active February 17, 2024 03:32
What you should (and shouldn’t) enable in Cloudflare for web performance

What you should (and shouldn’t) enable in Cloudflare for web performance

Cloudflare is a web-performance-and-security-as-a-service company.

To configure your web app to run faster, you need to:

  • sign up for Cloudflare
  • connect it to your site (by moving DNS records and setting up proxying)
  • enable a few toggles in the settings.
@Bo0oM
Bo0oM / laravel_session.php
Created May 15, 2020 08:01
Laravel Encryptor
<?php
class LaravelEncryptor {
private $key;
private $cipher;
public function __construct($key = 'ABCDEF1234567890ABCDEF1234567890', $cipher = 'AES-256-CBC') {
$this->key = substr($key, 0, 7) == 'base64:' ? base64_decode(substr($key, 7)) : $key;
$this->cipher = $cipher;
}