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
#!/bin/bash | |
### Install PHP 7.1 on OPenSUSE 42.2 64Bits | |
### https://build.opensuse.org/package/view_file/devel:languages:php/php7/php7.spec?expand=1 | |
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ | |
### http://www.shaunfreeman.name/compiling-php-7-on-centos/ | |
zypper in openssl-devel | |
zypper in gcc gcc-c++ libxml2-devel pkgconfig libbz2-devel curl-devel libwebp-devel |
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
#!/bin/bash | |
echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..." | |
#echo -e "\nEx: benchmark.sh -n100 -c10 http://www.google.com/ http://www.bing.com/ \n" | |
## Gnuplot settings | |
#set folder = 'C:/Users/carlosocarvalho/Pictures/benchmarks/' | |
echo "set terminal png |
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 | |
use \App\Core\CoreController; | |
class Home extends CoreController{ | |
public function __construct(){ | |
parent::__construct(); |
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 | |
namespace App\Core; | |
use Philo\Blade\Blade; | |
class CoreController extends \CI_Controller{ | |
/** | |
*@Blade |
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
{ | |
"autload":{ | |
"psr-4":{ | |
"App\\Core\\":"application/core" | |
} | |
} | |
} |
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 | |
namespace App\Core; | |
/** | |
* | |
* | |
*/ | |
class CoreController extends \CI_Controller{ | |
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 | |
/** | |
* Controller Demo for user Register events. | |
* | |
*/ | |
class Register extends CI_Controller{ | |
public function __construct(){ |
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 | |
$config = [ | |
'create:user' => [ | |
Events\RegisterUserSMSEvent::class, | |
Events\RegisterUserMailerEvent::class | |
], | |
'update:user' => [ | |
Events\RegisterUserMailerEvent::class | |
], | |
'delete:user' => [ |
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 RegisterEventAutoload{ | |
/** | |
* [handler on start classe events | |
* @return [type] [description] | |
*/ | |
public function handler(){ | |
$ci = get_instance(); |
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 | |
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
| ------------------------------------------------------------------------- | |
| Hooks | |
| ------------------------------------------------------------------------- | |
| This file lets you define "hooks" to extend CI without hacking the core | |
| files. Please see the user guide for info: | |
| | |
| http://codeigniter.com/user_guide/general/hooks.html |