I hereby claim:
- I am eddy8 on github.
- I am eddy8 (https://keybase.io/eddy8) on keybase.
- I have a public key ASD4PMLzRUzkNJdnkgnB_hH0IEiKbYspa1OUeYgO5F0oLQo
To claim this, I am signing this object:
| function getURLParameter(name) { | |
| return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null; | |
| } |
| <?php | |
| use Illuminate\Queue\Capsule\Manager as Queue; | |
| use Illuminate\Redis\Database as Redis; | |
| require 'vendor/autoload.php'; | |
| $queue = new Queue; | |
| $app = $queue->getContainer(); | |
| $manager = $queue->getQueueManager(); |
| <?php | |
| namespace Eddy; | |
| use Symfony\Component\DependencyInjection\Compiler\AutowirePass; | |
| use Symfony\Component\DependencyInjection\ContainerBuilder; | |
| use Symfony\Component\DependencyInjection\Definition; | |
| require 'vendor/autoload.php'; |
| <?php | |
| /** | |
| * 异常处理类 | |
| */ | |
| use \Illuminate\Contracts\Debug\ExceptionHandler; | |
| class MyQueueException implements ExceptionHandler | |
| { | |
| /** |
| <?php | |
| /** | |
| * 删除指定目录,含子目录及目录下文件 | |
| * | |
| * @param string $path 路径 | |
| * @return void | |
| */ | |
| function deleteAll($path) | |
| { | |
| $di = new DirectoryIterator($path); |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| use Swoole\Process; | |
| $filePaths = file_get_contents('./data/origin_url.txt'); | |
| $pathArr = explode("\n", $filePaths); | |
| $pathArrSplit = array_chunk($pathArr, 5000); | |
| $processNum = count($pathArrSplit); | |
| foreach ($pathArrSplit as $data) { |
| #!/bin/bash | |
| day=`date +%w` | |
| dt=`date +%Y%m%d` | |
| lastday=`date -d '1 days ago' +%Y%m%d` | |
| user=root | |
| pwd='6021c6e041b52921' | |
| log=backuplog.`date +%Y%m%d` | |
| case $day in | |
| 0) |
Install and configure MySQL 5.7 with master-slave replication. The benefits of this include high availability, backups, disaster recovery and reporting.
Enable MySQL repository
yum localinstall -y https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
| <?php | |
| namespace App\Model; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\Facades\DB; | |
| /** | |
| * 分表关联数据加载 | |
| */ |