Skip to content

Instantly share code, notes, and snippets.

View EddyF's full-sized avatar

Eddy Ferreira EddyF

View GitHub Profile
foreach($data['data'] as $key => $data)
{
if(isset($data))
{
$var[$key] = array(
'balance' => $data->balance,
'date' => date('d/m', strtotime($data->date))
);
}
}
//find stuff
find . -exec grep -H -n 'No active calls' {} \;
  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
...

#FOR MULTIPLE REDIS INSTANCE INSTALLATION ON RHEL7+ USE THE FOLLOWING PATHS AND SETUP PROCESS:

  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Routing\Router;
class RouteServiceProvider extends ServiceProvider
{