I hereby claim:
- I am tuongaz on github.
- I am tuongaz (https://keybase.io/tuongaz) on keybase.
- I have a public key whose fingerprint is 96D2 A015 FF74 89DC DF39 FABB 8807 3D2A 72DB 199D
To claim this, I am signing this object:
| <?php | |
| abstract class BaseModelManager { | |
| protected $em; | |
| protected $class; | |
| protected $repository; | |
| protected $container; | |
| /** | |
| * Constructor. |
| <?php | |
| // in /app/my_phpunit_bootstrap.php: | |
| require_once __DIR__.'/bootstrap.php.cache'; | |
| require_once __DIR__.'/AppKernel.php'; | |
| use Symfony\Bundle\FrameworkBundle\Console\Application; | |
| use Symfony\Component\Console\Output\ConsoleOutput; | |
| use Symfony\Component\Console\Input\ArrayInput; |
| xdebug.profiler_enable = 1 | |
| xdebug.profiler_output_dir = [LOCATION_TO_OUTPUT_DIR] | |
| xdebug.remote_enable=1 | |
| xdebug.remote_port=9000 | |
| xdebug.remote_connect_back = 1 | |
| xdebug.remote_host = [IP_ADDRESS_OF_MACHINE_WHERE_YOUR_IDE_IS] | |
| xdebug.remote_log = [LOCATION_TO_LOG_FILE] |
| git rm -r --cached <your directory> | |
| git commit -m 'Untrack files....' |
| #!/usr/bin/env php | |
| <?php | |
| // | |
| // PHP REPL with initialized Magento environment | |
| // | |
| // Thanks to https://github.com/d11wtq/boris | |
| // | |
| // Drop this script in your $PATH and run it anywhere in a Magento directory tree to start the REPL | |
| // |
| <?php | |
| /** | |
| * Error reporting | |
| */ | |
| error_reporting(E_ALL | E_STRICT); | |
| /** | |
| * Compilation includes configuration file | |
| */ | |
| define('MAGENTO_ROOT', '../share/magento'); |
| function sv() { | |
| SERVERS_DIR=/Users/tuongaz/servers | |
| if [[ $# == 0 ]]; then | |
| printf "sv server command\n" | |
| printf "List servers:\n" | |
| for dir in $(ls $SERVERS_DIR) | |
| do | |
| if [[ -d "$SERVERS_DIR/$dir" ]]; then | |
| printf "* $dir\n" |
I hereby claim:
To claim this, I am signing this object:
| sudo ssh -p 2222 -gNfL 80:localhost:80 vagrant@localhost -i ~/.vagrant.d/insecure_private_key |
| import {Injectable, Inject} from 'angular2/core'; | |
| import {Http, HTTP_PROVIDERS, Headers} from 'angular2/http'; | |
| import 'rxjs/add/operator/map'; | |
| import {Observable, Subject} from 'rxjs'; | |
| import * as layer from 'layer-websdk'; | |
| import * as _ from 'lodash'; | |
| export class Layer { | |
| layerClient: layer.Client; | |
| http: Http; |