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 Drupal\badcamp\Controller; | |
use Drupal\Core\Controller\ControllerBase; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Drupal\Core\DependencyInjection\ContainerInjectionInterface; | |
use Drupal\ExtraModule\Annotation\Permission; | |
use Drupal\Core\Template\TwigEnvironment; |
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
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://drugist.org" | |
} | |
] | |
} |
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
{ | |
"name": "dmouse/response", | |
"description": "Response sample", | |
"require": { | |
"symfony/http-foundation": "2.4.*" | |
}, | |
"license": "MIT", | |
"authors": [ | |
{ | |
"name": "David Flores", |
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
FROM centos | |
MAINTAINER David Flores "dmousex@gmail.com" | |
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 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 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 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 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 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 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 | |
# | |
# Using PHP Web Scraper Goutte in a Console Task in a Silex project | |
# | |
# http://www.testically.org/2011/09/30/using-php-web-scraper-goutte-in-a-console-task-in-a-silex-project/ | |
# | |
namespace Caefer; |
OlderNewer