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
| #!/usr/bin/env bash | |
| # Nettoyage système Ubuntu (APT, noyaux rc, journaux, Snaps, caches utilisateur) | |
| # Usage: bash ~/clean-ubuntu.sh | |
| # Option: --dry-run pour afficher sans supprimer (~/.cache) | |
| set -o pipefail | |
| DRY_RUN=0 | |
| [[ "$1" == "--dry-run" ]] && DRY_RUN=1 |
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
| Cible : Développeur PHP / Symfony / MySQL | |
| Niveau : Senior | |
| Ce document propose des questions classiques, sans piège, à poser lorsque vous désirez valider un candidat pour un poste de développeur back. | |
| J'utilise personnellement cette trame de questions, libre à vous de vous en inspirer, d'ajouter vos propres questions, et de déterminer lesquelles sont éliminatoires à vos yeux. | |
| Veille technologique | |
| Quelle est la version actuelle de PHP ? | |
| > http://php.net/supported-versions.php |
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
| version: '3' | |
| services: | |
| rabbitmq: | |
| image: 'bitnami/rabbitmq:3.8' | |
| environment: | |
| - RABBITMQ_PASSWORD=test | |
| - RABBITMQ_USERNAME=test | |
| ports: | |
| - '4369:4369' |
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); | |
| namespace App\Api\Application\Service; | |
| abstract class AbstractValue implements BitwiseCallback | |
| { | |
| protected $flag; | |
| public static function getFlag($value): BitwiseCallback |
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); | |
| namespace App\Api\Auth\Provider; | |
| use App\Api\User\Entity\User; | |
| use App\Api\User\Repository\UserRepository; | |
| use App\Domain\User\ValueObject\Email; | |
| use Symfony\Component\Security\Core\Exception\UnsupportedUserException; |
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
| # Symfony application's path (absolute or relative) | |
| SYMFONY_APP_PATH=../src | |
| # MySQL | |
| MYSQL_ROOT_PASSWORD=root | |
| MYSQL_DATABASE=toto | |
| MYSQL_USER=admin | |
| MYSQL_PASSWORD=admin | |
| # Timezone |
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
| public function listDir( | |
| $dirpathFromRoot, | |
| $sortColumn = 'filename', | |
| $orderBy = SORT_ASC, | |
| $listDir = false, | |
| $recursive = false | |
| ) { | |
| if ($orderBy != SORT_ASC && $orderBy != SORT_DESC) { | |
| $orderBy = SORT_ASC; | |
| } |
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 | |
| chdir(dirname(__DIR__)); | |
| define('CLASS_DIR', '[file]'); | |
| set_include_path(get_include_path().PATH_SEPARATOR.CLASS_DIR); | |
| spl_autoload_extensions('.php'); | |
| spl_autoload_register(); | |
| ini_set('xdebug.var_display_max_depth', 4); |
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 Application\View\Helper; | |
| //use Zend\View\Helper\AbstractHelper; | |
| use Zend\Form\View\Helper\AbstractHelper; | |
| use Zend\Form\Form; | |
| class RenderForm extends AbstractHelper { |