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
; See https://spot13.com/pmcalculator/ for configuration | |
; Start a new pool named 'www'. | |
; the variable $pool can be used in any directive and will be replaced by the | |
; pool name ('www' here) | |
[www] | |
; Per pool prefix | |
; It only applies on the following directives: | |
; - 'access.log' | |
; - 'slowlog' |
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
PHP-FPM: Settings | |
1. How much memory each PHP FPM process is consuming: | |
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }' | |
2. Server ram: | |
free -h | |
Use: https://spot13.com/pmcalculator/ | |
or |
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
<?php | |
declare(strict_types=1); | |
namespace App\Traits; | |
use Closure; | |
use Illuminate\Cache\RateLimiter; | |
/** |
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 package.json | |
Remove webpack.mix.js | |
Remove /resources | |
Remove /routes/web.php | |
Remove welcome.blade.php | |
Remove api route prefix so that API routes are at the root path | |
Comment out web middleware in HTTP Kernel | |
Adjust exception hanlder to always return JSON |
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
$handler = new StreamHandler($path); | |
$handler->setFormatter(new LineFormatter(null, "Y-m-d H:i:s", true, true)); | |
Log::channel('upkfile')->getLogger()->popHandler(); | |
Log::channel('upkfile')->getLogger()->pushHandler($handler); |
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
'hidden' => Phar::running() ? [ | |
NunoMaduro\Collision\Adapters\Laravel\Commands\TestCommand::class, | |
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class, | |
Symfony\Component\Console\Command\HelpCommand::class, | |
LaravelZero\Framework\Commands\MakeCommand::class, | |
LaravelZero\Framework\Commands\BuildCommand::class, | |
LaravelZero\Framework\Commands\InstallCommand::class, | |
LaravelZero\Framework\Commands\RenameCommand::class, | |
LaravelZero\Framework\Commands\StubPublishCommand::class, | |
Illuminate\Console\Scheduling\ScheduleRunCommand::class, |
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
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
}, | |
parserOptions: { | |
parser: 'babel-eslint', | |
sourceType: 'module', | |
}, | |
extends: [ |
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
<?php | |
namespace App\Models\Common; | |
/* | |
* Plugin: StreamlineFoundation | |
* | |
* Class: Schedule | |
* | |
* Description: Provides scheduling mechanics including creating a schedule, testing if a specific moment is part of the schedule, moving back |
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
multi_line_start_pattern = {datetime_format} |
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
DocumentRoot /usr/local/www/apache24/data/public | |
ServerName vagrant.local | |
AccessFileName .htaccess-dev | |
DirectoryIndex /index.php index.php | |
# Defining a worker will improve performance | |
# And in this case, re-use the worker (dependent on support from the fcgi application) | |
# If you have enough idle workers, this would only improve the performance marginally | |
<Proxy "fcgi://localhost:9000/" enablereuse=on max=10> | |
</Proxy> |