This file contains 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 | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$client= popen('ping localhost' , 'w'); | |
stream_set_blocking($client, 0); | |
$loop = React\EventLoop\Factory::create(); |
This file contains 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 | |
class errorHandler { | |
public function __construct() { | |
$_t = $this; | |
set_error_handler( | |
function ($error, $msg, $file, $line) use ($_t) { | |
switch ($error) { | |
// ++$var | |
case E_NOTICE: |
This file contains 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
define("DS", DIRECTORY_SEPARATOR); | |
set_include_path( | |
implode(PATH_SEPARATOR, array(dirname(__DIR__), get_include_path()) | |
)); | |
$psr = array( | |
'\\' => DS, | |
'_' => DS | |
); |
This file contains 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
##Apos instalar o VMtools no VMware | |
##Habilitar VM>settings>Options>Shared Folder (add, always enabled) na VMware | |
sudo apt-get install make build-essential dkms | |
#Ubuntu 13.04 + vmware 8 | |
# sudo apt-get install linux-headers-server | |
# cd /lib/modules/$(uname -r)/build/include/linux | |
# sudo ln -s ../generated/utsrelease.h | |
# sudo ln -s ../generated/autoconf.h |