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
| function _git_branch_name | |
| echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
| end | |
| function fish_prompt | |
| set_color green --bold | |
| printf '%s [at] ' (whoami) | |
| set_color blue | |
| printf '%s ' (hostname) |
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
| ; Enable xdebug extension module | |
| zend_extension=/usr/lib64/php/modules/xdebug.so | |
| xdebug.collect_params=3 | |
| xdebug.show_local_vars=5 | |
| xdebug.dump.GET=* | |
| xdebug.dump.POST=* | |
| ; see http://xdebug.org/docs/all_settings | |
| xdebug.collect_params=1 |
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 | |
| /** | |
| * @file | |
| * Contains Drupal\dmouse\Controller\SubRequestController. | |
| * Generated by drupal/console. | |
| */ | |
| namespace Drupal\dmouse\Controller; |
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 | |
| // ... | |
| use Drupal\Core\Session\AccountProxyInterface; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; | |
| use Psr\Log\LoggerInterface; | |
| class EntityResource extends ResourceBase { | |
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 | |
| use Drupal\Core\Config\FileStorage; | |
| // Empty destination dir and then write all .yml files there. | |
| $source_storage = Drupal::service('config.storage'); | |
| $destination_storage = new FileStorage('/tmp/config'); | |
| // Export configuration | |
| foreach ($source_storage->listAll() as $name) { | |
| $destination_storage->write($name, $source_storage->read($name)); |
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 | |
| /** | |
| * @file | |
| * Contains \Drupal\Acme\Command\AcmeCommand. | |
| */ | |
| namespace Drupal\Acme\Command; | |
| use Symfony\Component\Console\Command\Command; | |
| use Symfony\Component\Console\Input\InputArgument; | |
| use Symfony\Component\Console\Input\InputInterface; |
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
| FROM centos | |
| MAINTAINER David Flores "[email protected]" | |
| RUN yum update -y | |
| RUN yum install java-1.7.0-openjdk.x86_64 -y | |
| RUN yum install wget unzip which -y >/dev/null | |
| ENV HOME /root | |
| RUN cd /tmp && wget https://raw.githubusercontent.com/n8han/conscript/master/setup.sh | |
| RUN sh /tmp/setup.sh |
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 Drupal\response\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Symfony\Component\HttpFoundation\Response; | |
| class DefaultController extends ControllerBase | |
| { | |
| /** |
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": "dmouse/response", | |
| "description": "Response sample", | |
| "require": { | |
| "symfony/http-foundation": "2.4.*" | |
| }, | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "David Flores", |
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
| # Docker image with scala and play framework | |
| FROM centos | |
| MAINTAINER David Flores "[email protected]" | |
| RUN yum update -y | |
| RUN yum install java-1.7.0-openjdk.x86_64 -y | |
| RUN /bin/rpm -ivh http://downloads.typesafe.com/scala/2.11.0/scala-2.11.0.rpm | |
| RUN yum install wget unzip -y >/dev/null | |
| RUN cd /opt && wget http://downloads.typesafe.com/play/2.2.3/play-2.2.3.zip && unzip play-2.2.3.zip |