Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:
sysctl -a | grep machdep.cpu.features | grep VMX
If there's output, you're good!
f, err := os.OpenFile("bar.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) | |
if err != nil { | |
log.Fatalf("error opening file: %v", err) | |
} | |
defer f.Close() | |
mw := io.MultiWriter(os.Stdout, f) | |
log.SetOutput(mw) |
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Web Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register web routes for your application. These | |
| routes are loaded by the RouteServiceProvider within a group which | |
| contains the "web" middleware group. Now create something great! |
<?php | |
namespace App\Jobs; | |
use App\User; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; |
<?php | |
class LogManager { | |
protected $logger; | |
public function __construct($logger) { | |
$this->logger = $loggervar; | |
} | |
public function log($msg, $level) | |
{ |
function file_get_contents_chunked($file,$chunk_size,$callback) | |
{ | |
try | |
{ | |
$handle = fopen($file, "r"); | |
$i = 0; | |
while (!feof($handle)) | |
{ | |
call_user_func_array($callback,array(fread($handle,$chunk_size),&$handle,$i)); | |
$i++; |
<?php | |
class A { | |
public $dependencies = []; | |
public function __construct(...$arguments) | |
{ | |
$this->dependencies = $arguments; | |
} |