<service id="shopmacher.payment.logger.handler" class="Monolog\Handler\StreamHandler">
//...
<call method="pushProcessor">
<argument type="service" id="service_processor.payment_logger_filtering" />
</call>
</service>
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\Repositories\Eloquent; | |
use App\Contracts\Repository\IRepository as InterfaceRepository; | |
class BaseEloquentRepository implements InterfaceRepository | |
{ | |
protected $model; | |
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
function formatBytes(bytes: number): string { | |
const decimals = 2; | |
if (bytes === 0) return "0 B"; | |
const k = 1024; | |
const dm: number = decimals < 0 ? 0 : decimals; | |
const sizes: string[] = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]; | |
const i: number = Math.floor(Math.log(bytes) / Math.log(k)); |
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
function isObjectEmpty(obj: object): boolean { | |
for (const property in obj) { | |
return false; | |
} | |
return 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
export const MySection = React.forwardRef< | |
HTMLDivElement, | |
{ myAttribute: boolean } | |
>(({ myAttribute }, ref) => { | |
return ( | |
// your component | |
) | |
} | |
<MySection ref={mySectionRef} myAttribute={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
Require all denied | |
AuthName "Restricted Area" | |
AuthType Basic | |
AuthBasicProvider file | |
AuthUserFile /path/to/your/.htpasswd | |
Require valid-user | |
# Normal whitelist would just add Allow directives |
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
var src = $('#myModal iframe').attr('src'); | |
$('#myModal').on('show.bs.modal', () => { | |
$('#myModal iframe').attr('src', src); | |
}); | |
$('#myModal').on('hidden.bs.modal', () => { | |
$('#myModal iframe').attr('src', ''); | |
}); |
The fix is actually quite easy. Since the library is now in the core of PHP and should be managed using pecl. One should delete the include in the conf.d directory of the PHP version you're running. E.G: For PHP 7.1 I would remove the following:
/usr/local/etc/php/7.1/conf.d/ext-intl.ini
The out-of-memory killer would choose mysql to close down, because it was (usually) the biggest memory user in the system.
The command to sort down processes by memory usage:
ps aux --sort -rss | head -n15
Solution:
- Try upgrade new version
- Turn off optimize performance schema, edit
/etc/mysql/my/cnf
NewerOlder