This file contains hidden or 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 | |
| $header = <<<EOH | |
| /***************************************************************************** | |
| * Hacman Active Member RFIDs | |
| * Requirements: PHP 5.3+, PHP XMLRPC and CURL Extensions | |
| * | |
| * Options Available: | |
| * --------------------- | |
| * -h, --help shows this message | |
| * -u, --username the username for the RPC call |
This file contains hidden or 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
| public function getServiceConfig() | |
| { | |
| return array( | |
| 'factories' => array( | |
| 'auth' => function(ServiceManager $sm) { | |
| $db = $sm->get('Zend\Db\Adapter\Adapter'); | |
| $authAdapter = new \Zend\Authentication\Adapter\DbTable\CallbackCheckAdapter( | |
| $db, | |
| 'users', | |
| 'username', |
This file contains hidden or 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
| { | |
| "name": "test/replace", | |
| "minimum-stability": "dev", | |
| "require": { | |
| "zendframework/zendframework": "~2.2", | |
| "doctrine/doctrine-orm-module": "0.8.*", | |
| "slm/mail": "~1.3" | |
| }, | |
| "require-dev": { | |
| "phpunit/phpunit": "~3.7" |
This file contains hidden or 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
| for repo in $(cat repos-list.txt) | |
| do | |
| git clone user@host:/var/git/$repo | |
| cd /d/repos/$repo | |
| git remote add gitlab git@otherhost:group/$repo.git | |
| git push gitlab master | |
| for branch in $(git branch -r) | |
| do | |
| remote="${branch:0:6}" |
This file contains hidden or 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 = array( | |
| 'controllers' => array( | |
| 'manager' => array(), | |
| 'invokables' => array(), | |
| 'factories' => array(), | |
| 'plugins' => array() | |
| ), | |
| 'views' => array( | |
| 'manager' => array(), |
This file contains hidden or 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 $this->form->prepare(); ?> | |
| <div class="row"> | |
| <!-- Contenido seleccionado en el menu de la izquierda --> | |
| <div class="col-md-9 col-md-push-3"> | |
| <div id="navigation_wrapper" style="display:none" class="navigation_content"> | |
| <?php echo $this->form()->openTag($this->form) . PHP_EOL; ?> | |
| <?php foreach($this->form->getElements() as $formElement):?> | |
| <div class="form-group"> |
This file contains hidden or 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 CustomTheme; | |
| use Zend\Stdlib\ArrayUtils; | |
| use Zend\ModuleManager\Feature\ServiceProviderInterface; | |
| use Zend\ModuleManager\Feature\ViewHelperProviderInterface; | |
| class Module implements ServiceProviderInterface, | |
| ViewHelperProviderInterface |
This file contains hidden or 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 Application; | |
| use Zend\Mvc\ModuleRouteListener; | |
| use Zend\Mvc\MvcEvent; | |
| class Module | |
| { | |
| public function onBootstrap(MvcEvent $e) |
This file contains hidden or 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
| [alias] | |
| update = pull origin | |
| st = status | |
| submit = push origin | |
| merge-branch = "!sh -c 'git checkout $1 && git update $1 && git checkout - && git merge $1' -" | |
| merge-to = "!sh -c 'git checkout $1 && git update $1 && git merge - && git submit $1 && git checkout -' -" |