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
| import ssl | |
| ssl._create_default_https_context = ssl._create_unverified_context |
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
| https://youtube.com/shorts/s5tekmjyOCg?si=x6Tkt258O-bYee9l pour annimer une image |
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
| document.addEventListener('DOMContentLoaded', function() { | |
| console.log('ca marche'); //cela doit ce voir dans la console du nav des le chargement | |
| }); |
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/local/etc/php/8.3 | |
| remplacer par | |
| /opt/homebrew/etc/php/8.3 | |
| ex : nano /opt/homebrew/etc/php/8.3/php.ini | |
| ctrl+w = recherche | |
| ctrl+o = enregistrer | |
| ctrl+x = quitter |
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
| //Créer une clé privée sur son ordinateur local | |
| $bash ssh-keygen -t rsa -b 4096 | |
| //Enter file in which to save the key (faire Entrée pour que l'emplacement par défaut soit sélectionné et crée une clé privée) | |
| //Enter passphrase (faire Entrée pour ne pas ajouter de mot de passe) | |
| //Enter same passphrase again (faire à nouveau Entrée) |
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
| //zipper le projet | |
| $bash zip -r Nom_du_fichier.zip Adresse_du_dossier | |
| //pour envoyer à Ionos ce mettre dans le dossier | |
| scp Nom_du_fichier.zip identiantSSH@Hote:/(adresse dossier de depot) | |
| //le mot de passe est celui configurer sur Ionos | |
| //Pour dezipper le fichier |
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 symfony/skeleton todolist_apiplatform "5.4.*" | |
| composer require api | |
| docker-compose up -d |
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 config --global alias.graph "log --all --graph --decorate --oneline" | |
| Commande qui permet de faire git graph | |
| git config --global user.name "Nom d'utilisateur générique" | |
| git config --global user.email "votre-email@example.com" | |
| git config --global --list |
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 new userSymfony --version="5.4.*" | |
| composer require symfony/maker-bundle --dev | |
| composer require orm | |
| composer require symfony/security-bundle | |
| php bin/console make:user | |
| DATABASE_URL="mysql://root:@127.0.0.1:3306/nom_BDD?serverVersion=mariadb-10.4.17&charset=utf8mb4" | |
| php bin/console doctrine:database:create | |
| php bin/console make:migration | |
| php bin/console doctrine:migrations:migrate |
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
| heroku login | |
| heroku create | |
| echo 'web: heroku-php-apache2 public/' >Procfile | |
| composer require symfony/apache-pack //crée le fichier htaccess | |
| heroku addons:create cleardb:ignite | |
| heroku config | grep CLEARDB_DATABASE_URL |
NewerOlder