This file contains 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
<?php | |
/** | |
* Usage: dumpBacktrace(debug_backtrace(), 3); | |
*/ | |
function dumpBacktrace($b, int $count = null): void | |
{ | |
$count = is_int($count) ? $count : count($b); | |
for ($i = $count - 1; $i >= 0; --$i) { | |
dump(($b[$i]['class'] ?? '') . '@' . $b[$i]['function']); |
This file contains 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
const OFF = 'off'; | |
const WARN = 'warn'; | |
const ERROR = 'error'; | |
module.exports = { | |
root: true, | |
env: { | |
node: true, | |
browser: true, | |
}, |
This file contains 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
const OFF = 'off'; | |
const WARN = 'warn'; | |
const ERROR = 'error'; | |
const MAX_COMPLEXITY = 11; | |
module.exports = { | |
root: true, | |
env: { | |
node: true, | |
}, |
This file contains 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
<?xml version="1.0"?> | |
<ruleset name="Laravel Standards"> | |
<description>The Laravel Coding Standards</description> | |
<file>app</file> | |
<file>config</file> | |
<file>resources</file> | |
<file>routes</file> | |
<file>tests</file> |
This file contains 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
if [ -f artisan ] | |
then | |
php artisan down --message="Upgrading" --retry=60 | |
# to prevent missing providers/services when optimizing autoloader | |
# php artisan view:clear | |
# php artisan cache:clear | |
# php artisan route:clear | |
# php artisan config:clear | |
# php artisan clear-compiled |
This file contains 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
#!/bin/bash | |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
BASE=./bin | |
rm $BASE/chromedriver | |
wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P $BASE/ | |
unzip $BASE/chromedriver_linux64.zip -d $BASE/ | |
rm $BASE/chromedriver_linux64.zip |
This file contains 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
<?php | |
namespace App\Console\Commands; | |
use RuntimeException; | |
use Illuminate\Support\Str; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; |
This file contains 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
<?php | |
namespace App\Console\Commands\Horizon; | |
use Illuminate\Console\Command; | |
use Illuminate\Queue\Failed\FailedJobProviderInterface; | |
use Laravel\Horizon\Contracts\JobRepository; | |
use Laravel\Horizon\Jobs\RetryFailedJob; | |
class RetryAllFailedJobsCommand extends Command |
OlderNewer