This file has been truncated, but you can view the full file.
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
| {"openapi":"3.0.0","info":{"title":"GLPI High-Level REST API","description":"The High-Level REST API documentation shown here is dynamically generated from the core GLPI code and any enabled plugins.\nIf a plugin is not enabled, its routes will not be shown here.","version":"2.0.0","license":{"name":"GNU General Public License v3 or later","url":"https:\/\/www.gnu.org\/licenses\/gpl-3.0.html"}},"servers":[{"url":"http:\/\/localhost:8082\/api.php","description":"GLPI High-Level REST API"}],"components":{"securitySchemes":{"oauth":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"\/api.php\/authorize","tokenUrl":"\/api.php\/token","refreshUrl":"\/api.php\/token","scopes":{"email":"Acc\u00e8s au email des utilisateurs","user":"Acc\u00e8s au informations des utilisateurs","api":"Acc\u00e8s \u00e0 l'API","inventory":"Acc\u00e8s \u00e0 l'inventaire envoy\u00e9 par un agent","status":"Acc\u00e8s au point d'entr\u00e9e \"status\"","graphql":"Acc\u00e8s au point d'entr\u00e9e \"GraphQL\""}},"password" |
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 |
NewerOlder