Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.
[Brief description ]
- [more description]
- [more description]
- [more description]
| # --all-databases , -A | |
| # 导出全部数据库 | |
| mysqldump -uroot -p --all-databases | |
| # --all-tablespaces , -Y | |
| # 导出全部表空间。 | |
| mysqldump -uroot -p --all-databases --all-tablespaces | |
| # --no-tablespaces , -y | |
| # 不导出任何表空间信息。 |
| status=$(service php7.4-fpm status | grep running) | |
| if [ -z "$status" ] | |
| then | |
| service php7.4-fpm start | |
| else | |
| echo "FPM is running" | |
| fi |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Process\Process; | |
| use Symfony\Component\Process\Exception\ProcessFailedException; | |
| class BackUpDatabase extends Command | |
| { |
| .input { | |
| @apply bg-white rounded-lg w-full max-w-lg px-6 border border-gray-300 py-3 mt-2; | |
| &::placeholder { | |
| @apply text-gray-dark; | |
| } | |
| &:focus { | |
| @apply border-opacity-0 outline-none shadow-outline-blue; | |
| } |
| composer update --ignore-platform-reqs |
| # For shutdown machine | |
| shutdown --poweroff | |
| # Remaining Disk Status, Human Readable | |
| df -h | |
| # Directory Usage, Human Readable | |
| du -hs * |
| <?php namespace App\Services; | |
| /** | |
| * A PHP version of the Enigma machine. | |
| * Wikipedia: http://en.wikipedia.org/wiki/Enigma_machine | |
| * | |
| * This might not be an accurate representation. I have never seen, nor used an enigma machine. | |
| * This class was created by reading the article at http://enigma.louisedade.co.uk/howitworks.html. | |
| * | |
| * Usage: |
| <?php | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| class ImageOptimize extends Command { | |
| /** | |
| * The console command name. |