Setup:
- Install Kubuntu 21.04
- Create an SSH key with email @lephare.com
- Add your pub key to lephare authorized keys
- Install git
- Install zsh
- Install oh-my-zsh
- Install Docker
- Install Docker Compose
Setup:
| <?php | |
| // AliceBundle: https://github.com/hautelook/AliceBundle/blob/master/doc/faker-providers.md | |
| // https://github.com/misd-service-development/phone-number-bundle/issues/27 | |
| // Usage: <PhoneNumber()> | |
| namespace App\DataFixtures\Faker\Provider; | |
| use Faker\Factory; | |
| use libphonenumber\PhoneNumberUtil; | |
| class PhoneNumberProvider |
Use case: Translations in YAML
| #!/usr/bin/env bash | |
| IFS=',' read -r -a locales <<< "$1" | |
| bundle=$2 | |
| echo "Check missing translation for locales $locales in $bundle" | |
| for locale in $locales ; do | |
| if ./bin/console debug:translation $locale $bundle | grep missing | |
| then | |
| (>&2 echo "Translations are missing for locale $locale") | |
| exit 1 | |
| else |
| * Be sure to set minimum-stability to dev | |
| * Use options symlink true | |
| * When requiring a package via path repository, there is no git related features (like requiring the package on a specific branch). The symlink use filesystem. |
| # today | |
| curl wttr.in/~Nantes?0 | |
| # this week | |
| curl wttr.in/~Nantes |
| -- when the database/ORM try to insert a record with an existing id/PK | |
| ALTER SEQUENCE sequence_name RESTART WITH your_next_free_id; |
First, go to File > Settings > Languages & Frameworks > PHP > Symfony.
Translation Root Path settings is corrected, something like src/AppBundle/Resources/translations.CAPS LOCK key to ESC cuz' key is closer and prevent me from yelling. how to do this| <TaskOptions> | |
| <TaskOptions> | |
| <option name="arguments" value="--verbose fix" /> | |
| <option name="checkSyntaxErrors" value="true" /> | |
| <option name="description" /> | |
| <option name="exitCodeBehavior" value="ALWAYS" /> | |
| <option name="fileExtension" value="php" /> | |
| <option name="immediateSync" value="false" /> | |
| <option name="name" value="php-cs-fixer" /> | |
| <option name="output" value="" /> |