Filesystem | default (128M) | 10G | 20G |
---|---|---|---|
ext4 | 39952 | 71552 | 70907 |
XFS | 40311 | 69782 | 70147 |
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
innodb_io_capacity | innodb_io_capacity_max | NOTPM | |
---|---|---|---|
200 | 200 | 88208 | |
200 | 300 | 88857 | |
200 | 400 | 88547 | |
200 | 500 | 88671 | |
200 | 750 | 88850 | |
200 | 1000 | 88433 | |
200 | 1500 | 89293 | |
200 | 2000 | 89644 | |
200 | 3000 | 92469 |
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
#!/usr/bin/env bash | |
# print usage | |
DOMAIN=$1 | |
if [ -z "$1" ]; then | |
echo "USAGE: $0 domain.lan" | |
echo "" | |
echo "This will generate a non-secure self-signed wildcard certificate for given domain." | |
echo "This should only be used in a development environment." |
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 | |
/** | |
* Adds "PECL <package name>" in front of versions in php.net docs changelogs. | |
* Used for https://github.com/php/doc-en/pull/162 | |
*/ | |
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__ . '/reference')); | |
foreach ($files as $file) { |
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 | |
/** | |
* This script downloads the list of releases of a project via the GitHub API, | |
* and generates a changelog out of it. | |
* | |
* Example, to generate a changelog for brick/math: | |
* | |
* php changelog-from-github-api.php brick/math > CHANGELOG.md | |
*/ |
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 | |
/** | |
* Example valid with benmorel/smartdump~0.2.0 | |
* | |
* https://github.com/BenMorel/smartdump | |
*/ | |
use BenMorel\SmartDump\Configuration\DumpConfiguration; | |
use BenMorel\SmartDump\Configuration\TargetTable; |
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); | |
error_reporting(E_ALL); | |
set_error_handler(function ($severity, $message, $file, $line) { | |
if ((error_reporting() & $severity) === 0) { | |
return false; | |
} |
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
-----BEGIN CERTIFICATE----- | |
MIIDdTCCAl2gAwIBAgIUN09wV0sbUhrzQ9WonV0xOabJqJ8wDQYJKoZIhvcNAQEL | |
BQAwSjELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD19EZXZlbG9wbWVudCBDQTEhMB8G | |
A1UEAwwYRGV2ZWxvcG1lbnQgY2VydGlmaWNhdGVzMB4XDTIwMTAxNDE2MTA0NFoX | |
DTMwMTAxMjE2MTA0NFowSjELMAkGA1UEBhMCVVMxGDAWBgNVBAoMD19EZXZlbG9w | |
bWVudCBDQTEhMB8GA1UEAwwYRGV2ZWxvcG1lbnQgY2VydGlmaWNhdGVzMIIBIjAN | |
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzpZt/KQzyM+eJW336oeZFb+wqrBQ | |
gcTPttoRIbaVKvxsGUiXcf1RaYrn9KLfNn3J6HGv6s1gO/sPooNch53dq8pkqPtZ | |
VQUn66A/0FIMvkBd0Y/zTb5n4eTFwJcrn1xhYiBEODkkr+4c6YAAzDGg2ngY6gay | |
0womr6C72NDOFQCXVewr+KkXi6DWqIF1cE4hBZ0i97ASMCkWGL/3+cotzmbdBkE1 |
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 | |
/** | |
* Examples: | |
* | |
* errorLevelToConstants(E_WARNING) => ['E_WARNING', 'E_ALL'] | |
* errorLevelToConstants(3) => ['E_ERROR', 'E_WARNING', 'E_ALL'] | |
* | |
* @return string[] | |
*/ |
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 | |
/** | |
* Two methods to get the dominant color from an image. | |
* Useful to create placeholders while loading an image. | |
* | |
* Method 1 yields more bright colors than method 2. | |
*/ | |
/** |