This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: config/smarty.config.inc.php | |
IDEA additional info: | |
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
<+>UTF-8 | |
=================================================================== | |
diff --git a/config/smarty.config.inc.php b/config/smarty.config.inc.php | |
--- a/config/smarty.config.inc.php (revision cd9eaeed1ed65393d33a95ff8ba7b288c17d1c07) | |
+++ b/config/smarty.config.inc.php (revision 2e9363675c555b7a380b10aad289921581a21b76) | |
@@ -40,10 +40,12 @@ | |
$smarty->setConfigDir(_PS_SMARTY_DIR_.'configs'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "prestashop/validator", | |
"authors": [ | |
{ | |
"name": "Prestashop" | |
} | |
], | |
"require": { | |
"guzzlehttp/guzzle": "^7.0" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker-compose et instructions pour comparer 2 versions d'une base de données. | |
# (faut être trop pressé) | |
version: '3' | |
services: | |
mysql_un: | |
image: mysql:5.7 | |
container_name: mysql_un |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout master | |
git pull | |
git checkout <branch> | |
git merge master | |
# [ ... resolve any conflicts ... ] | |
git add [files that were conflicted] | |
git commit | |
git push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer create-project sebsept/composer-starter:dev-main lenouveauprojet --repository /tmp/repo.json | |
/* | |
# /tmp/repo.json | |
{ | |
"package": { | |
"name": "sebsept/composer-starter", | |
"version": "dev-main", | |
"source": { | |
"url": "/home/http/perso/prestashop/ModuleStubs", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function memoize(Closure $fn) : Closure { | |
return function (...$args) use ($fn) { | |
static $results = []; | |
$argsHash = sha1( join("", array_map('serialize', func_get_args()))); | |
$results[$argsHash] = $results[$argsHash] ?? $fn(...$args); | |
return $results[$argsHash]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace SebSept\Adminproductquantities\Controller; | |
use PrestaShopBundle\Api\Stock\Movement; | |
use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController; | |
use PrestaShopBundle\Entity\ProductIdentity; | |
use PrestaShopBundle\Entity\Repository\StockRepository; | |
use PrestaShopBundle\Service\ProductService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
# installation des versions de php | |
PHPS=('php56' 'php72' 'php73' 'php80') | |
EXTENSIONS=('fpm' 'gd' 'xml' 'zip' 'mysqlnd' 'mysqli' 'yaml' 'soap' 'mbstring' 'intl' 'pecl-zip') | |
dnf install "https://rpms.remirepo.net/fedora/remi-release-33.rpm" -y | |
for PHP in "${PHPS[@]}" | |
do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class imu | |
{ | |
/** | |
* @var float | |
*/ | |
private $one; | |
/** | |
* @var float |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php declare(strict_types=1); | |
/** | |
* Script pour vider le cache de prestashop. | |
* | |
* Résoud le problème de lenteur lié a l'exces de ressource consommé par le vidage du cache. | |
* Script a placer à la racine de l'installation de prestashop. | |
* | |
* Fonctionnement | |
* 1 - création d'un dossier vide destiné a être le nouveau dossier de cache. | |
* 2 - renomage du dossier de cache actuel |
NewerOlder