Skip to content

Instantly share code, notes, and snippets.

View defro's full-sized avatar

Joël Gaujard defro

View GitHub Profile
@defro
defro / sleepagotchi lite CLAN.csv
Last active May 15, 2025 12:06
Sleepagotchi LITE game : level and stars cards requirement by constellation
Constellation # Min card level Min card star
5 18 2 simple
6 20 2 simple
7 22 3 simple
8 24 3 simple
9 26 4 simple
10 28 4 simple
11 30 5 simple
12 32 5 simple
13 34 1 silver
@defro
defro / 1-prestashop-brands.sql
Last active March 18, 2025 14:03
PrestaShop 1.7 : query to export all data > create a CSV file > import to an other PrestaShop instance
SELECT
m.id_manufacturer AS `ID`,
m.active AS `Active (0/1)`,
m.name AS `Name`,
IFNULL(ml.description, '') AS `Description`,
IFNULL(ml.short_description, '') AS `Short description`,
IFNULL(ml.meta_title, '') AS `Meta title`,
IFNULL(ml.meta_keywords, '') AS `Meta keywords`,
IFNULL(ml.meta_description, '') AS `Meta description`,
CONCAT('https://www.my-prestashop.com/img/m/', m.id_manufacturer, '.jpg') AS `Image URL`
@hoandang
hoandang / php-docker-ext
Created May 20, 2017 01:12
Complete list of php docker ext
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/