See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
| <?php | |
| declare(strict_types=1); | |
| namespace Local\PhpStan; // <----------------------------------- change to where you paste it! | |
| use PHPStan\Analyser\Error; | |
| use PHPStan\Command\AnalysisResult; | |
| use PHPStan\Command\ErrorFormatter\ErrorFormatter; | |
| use PHPStan\Command\Output; |
| <?php | |
| declare(strict_types=1); | |
| namespace Common; | |
| use Business\MultiDomain\DetectEnvironment; | |
| use function exec; | |
| use function in_array; |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
| function mysql() { | |
| read -p "Champ, are you aware that you are in production? (y/N): " confirm | |
| if [[ "$confirm" =~ ^[Yy]$ ]]; then | |
| command mysql "$@" | |
| else | |
| echo "Command execution canceled. Next beer is on you." | |
| fi | |
| } |
I wanted a simple way to debug memory usage in a Laravel or simple PHP project. Something I can just drop into my code without packages, extensions or what not. This little helper does what I need.
"autoload": {
"files": [| #battery | |
| sudo pmset -b standbydelaylow 300 | |
| sudo pmset -b standby 1 | |
| sudo pmset -b halfdim 1 | |
| sudo pmset -b sms 0 | |
| sudo pmset -b disksleep 10 | |
| sudo pmset -b standbydelayhigh 600 | |
| sudo pmset -b sleep 10 | |
| sudo pmset -b autopoweroffdelay 40000 | |
| sudo pmset -b hibernatemode 25 |
| <?php | |
| namespace Base; | |
| class PasswordString | |
| { | |
| const LEGAL_CHARS = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*[]{}()_+-=,.<>?;:|'; | |
| public static function make(): string | |
| { |