$ npx create-next-app@latest --typescript
$ cd <directory_created>
$ yarn dev
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
SELECT table_schema as 'Database Name', | |
sum( data_length + index_length ) as 'Size in Bytes', | |
round((sum(data_length + index_length) / 1024 / 1024), 4) as 'Size in MB' | |
FROM information_schema.TABLES | |
GROUP BY table_schema; | |
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
$ sudo composer global self-update | |
$ sudo composer global update # update all packages | |
$ composer global show -i # show installed packages | |
$ sudo composer global update "laravel/installer" | |
npm i -g npm@latest | |
npm -g update # update all global packages | |
npm i -g cordova | |
npm i -g ionic@latest | |
npm i -g @angular/cli |
#Symfony 3
- Symfony\Component\Form\Extension\Core\Type\DateTimeType (
DatetimeType::class
: fully qualified class name) - Cookbook
- Best practices
- Components
- Validation constraints reference
- Doctrine and other ORMs cheatsheet
- Doctrine useful methods
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
// Remove x-pingback header tag | |
function remove_x_pingback($headers) | |
{ | |
unset($headers['X-Pingback']); | |
return $headers; | |
} | |
add_filter('wp_headers', 'remove_x_pingback'); | |
// === |