This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| cd ~/.PhpStorm[version] | |
| rm config/eval/PhpStorm[version].evaluation.key | |
| rm config/options/options.xml | |
| cd ~/.java/.userPrefs/jetbrains | |
| rm -rf phpstorm |
MySQL 8.0service from servicescmdmysqld --console --skip-grant-tables --shared-memorycmd in the same pathmysql -u rootselect authentication_string,host from mysql.user where user='root';UPDATE mysql.user SET authentication_string='' WHERE user='root';| <ruleset name="PHP_Codeer" xsi:noNamespaceSchemaLocation="phpcs.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <description>The coding standard for PHP_Codeer itself.</description> | |
| <!-- Files --> | |
| <file>bin</file> | |
| <file>src</file> | |
| <!-- Excludes --> | |
| <exclude-pattern>vendor/</exclude-pattern> |
| # Best if added to `after.sh` so that this gets run every time the box is provisioned | |
| # composer won't be able to download updates with an active proxy, and will hang trying to get the newest file | |
| # You may want to comment this out based on your network configuration | |
| sudo bash -c 'echo "export NO_PROXY=*" >> ~/.profile' | |
| sudo add-apt-repository ppa:ondrej/php -y | |
| sudo apt-get update | |
| sudo apt-get install php7.2-dev php7.2-xml mcrypt php-pear php-mbstring unixodbc unixodbc-dev -y --allow-unauthenticated |
| /** | |
| * First we will load all of this project's JavaScript dependencies which | |
| * includes Vue and other libraries. It is a great starting point when | |
| * building robust, powerful web applications using Vue and Laravel. | |
| */ | |
| require('./bootstrap'); | |
| window.Vue = require('vue'); |
| desc('Tail your laravel.log file'); | |
| task('tail', function () { | |
| $numLines = isVerbose() ? '100' : '1000'; | |
| $tail = "tail -n {$numLines} {{deploy_path}}/current/storage/logs/laravel*.log "; | |
| if (!isVerbose()) { | |
| // Change -P to -E, depending on OS or grep version. | |
| $tail .= '| grep -i -P "^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" | tail -n 100 '; | |
| } | |
| $output = run($tail); |
| <?php | |
| /* Instructions: | |
| * 1. Add this class file to your app/Console folder | |
| * 2. Register command in app/Console/Kernel by adding `\App\Console\Commands\MigrateSpecificCommand::class` it to commands array | |
| * 3. Done, now you can access it like: php artisan migrate:specific 2014_10_12_000000_create_users_table,2014_10_12_100000_create_password_resets_table | |
| */ | |
| namespace App\Console\Commands; |
| <?php | |
| /* Instructions: | |
| * 1. Add this class file to your app/Console folder | |
| * 2. Register command in app/Console/Kernel by adding `\App\Console\Commands\MigrateSpecificCommand::class` it to commands array | |
| * 3. Done, now you can access it like: php artisan migrate:specific 2014_10_12_000000_create_users_table,2014_10_12_100000_create_password_resets_table | |
| */ | |
| namespace App\Console\Commands; |
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Register The Laravel Class Loader | |
| |-------------------------------------------------------------------------- | |
| | | |
| | In addition to using Composer, you may use the Laravel class loader to | |
| | load your controllers and models. This is useful for keeping all of | |
| | your classes in the "global" namespace without Composer updating. |