Skip to content

Instantly share code, notes, and snippets.

View matteocostantini's full-sized avatar

Matteo Costantini matteocostantini

View GitHub Profile
@Pixep
Pixep / clear-prestashop17-cache.sh
Last active February 2, 2021 15:10
Automated Prestashop 1.7 cache clear
#!/bin/bash
if [ -z "$1" ]; then
echo "Error: Requires exactly 1 argument, the root of your prestashop folder. Aborting."
exit 1
fi
base_dir=$1
# Clear class index in case any override changed
rm ${base_dir}/cache/class_index.php
@Jiab77
Jiab77 / real-time-php-fpm-status.md
Last active June 27, 2024 21:06
This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.

Real-time PHP-FPM Status

This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.

Everybody knows the famous phpinfo() and the page it generates, right? Then the real-time PHP-FPM status page design is very similar.

image

Some informations from the top are not displayed to avoid security issues.

Enable PHP-FPM Status

@matteocostantini
matteocostantini / FileSystemWatcher.cs
Created August 3, 2020 15:26 — forked from Dynyx/FileSystemWatcher.cs
FileSystemWatcher example
using System;
using System.IO;
using System.Security.Permissions;
public class Watcher
{
public static void Main()
{
Run();