Skip to content

Instantly share code, notes, and snippets.

View emilsrits's full-sized avatar

Emils Rits emilsrits

View GitHub Profile
@emilsrits
emilsrits / instructions.md
Last active April 1, 2021 12:51
Trusted SSL certificate for local development WSL

Adding SSL certificates for local development on Ubuntu

1: Get latest packages

# sudo apt-get update

2: Install certutil

@emilsrits
emilsrits / php-pools.md
Created March 26, 2021 22:16 — 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
@emilsrits
emilsrits / launch.json
Last active January 4, 2022 10:02
VSCode XDebug config for PHP (Laravel) projects
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"ignore": [
"**/vendor/**/*.php"
@emilsrits
emilsrits / vscode_ext.sh
Last active May 6, 2025 18:57
VSCode extensions
#!/bin/bash
#UNIX: code --list-extensions | xargs -L 1 echo code --install-extension
#WINDOWS: code --list-extensions | % { "code --install-extension $_" }
# LOCAL
code --install-extension alefragnani.project-manager
code --install-extension amiralizadeh9480.laravel-extra-intellisense
code --install-extension bcanzanella.openmatchingfiles
code --install-extension bmewburn.vscode-intelephense-client