Confirm the current kernel version:
$ uname -snr
Linux 3.10.0-1062.18.1.el7.x86_64 x86_64
Add the ELRepo repository:
yum update -y
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
<?php | |
namespace Tests; | |
use PHPUnit\Framework\TestCase; | |
class ArrayReplaceListsRecursiveTests extends TestCase | |
{ | |
public function test_array_replace_lists_recursive() | |
{ |
<?php | |
namespace App\Jobs; | |
use Exception; | |
use Throwable; | |
class ExampleJob extends BaseJob | |
{ | |
public int $number; |
{ | |
{ | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "[email protected]:bar/project.git" | |
} | |
], | |
"require": { | |
"foo/project": "dev-main" |
<?php | |
/** | |
* Apply a user supplied function to every member of an array, in parallel. | |
* | |
* @param array $array | |
* @param callable $callback First arg is the value, second arg is the key. | |
* @param mixed $arg Will be passed as the third parameter to the callback. | |
* @param int $maxProcesses | |
* @return bool |
<?php | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Str; | |
/** | |
* ``` | |
* collect(['foo' => ['bar' => 'baz']])->recursive(); | |
* collect(['foo' => ['bar', 'baz', 'qux']])->recursive(true); | |
* ``` |
<?php | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Carbon; | |
use Illuminate\Support\Str; | |
if (! function_exists('add_query_arg')) { | |
/** | |
* Add query arg(s) to a URL. | |
* |
<?php | |
namespace Tests\Traits; | |
use PHPUnit\Util\Test as TestUtil; | |
use Throwable; | |
trait Retry | |
{ | |
/** |
<?php | |
/** | |
* Apply a user supplied function to every member of an array, in parallel | |
* | |
* Similar to PHP's array_walk(), except the input array isn't passed by | |
* reference and the callbacks are ran asynchronously. The technique is highly | |
* portable and requires only PHP 5.4 and the PCNTL extension. | |
* | |
* The most obvious limitation is that we can't pass the input array by |
Confirm the current kernel version:
$ uname -snr
Linux 3.10.0-1062.18.1.el7.x86_64 x86_64
Add the ELRepo repository:
yum update -y
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
#!/usr/bin/env bash | |
# BASE (required) - Releases are stored here. | |
# TARGET (required) - This will be a symlink to the current release. | |
# REPO (required) - The address to your Git repo. | |
# KEEP - How many latest releases to keep around (default is 10). | |
# | |
# Example: | |
# | |
# BASE=/var/www/foo/releases TARGET=/var/www/foo/public_html [email protected]:foo/bar.git ./atomic_deploy.sh 2b5d4a |