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
| { | |
| "repositories": [ | |
| { | |
| "type": "composer", | |
| "url": "http://drugist.org" | |
| } | |
| ] | |
| } |
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\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 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 | |
| $finder = new Finder(); | |
| $dot_dot = ''; | |
| while (true){ | |
| try { | |
| $iterator = $finder | |
| ->files() | |
| ->name('bootstrap.inc') | |
| ->in(getcwd() . '/'. $dot_dot . 'core/includes/'); |
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": "hechoendrupal/composer-ui", | |
| "description": "Composer UI", | |
| "minimum-stability": "dev", | |
| "authors": [ | |
| { | |
| "name": "David Flore", | |
| "email": "[email protected]" | |
| } | |
| ], |
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 | |
| function oauth_menu() { | |
| //... | |
| $menu['admin/config/services/oauth'] = array( | |
| 'title' => 'OAuth', | |
| 'description' => 'Settings for OAuth', | |
| 'route_name' => 'oauth_admin_form', |
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
| oauth_admin_form: | |
| pattern: '/admin/config/services/oauth' | |
| defaults: | |
| _form: 'Drupal\oauth\Form\OAuthSettingsForm' | |
| requirements: | |
| _permission: 'administer oauth' |
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\oauth\Form\OAuthSettingsForm. | |
| */ | |
| namespace Drupal\oauth\Form; | |
| use Drupal\system\SystemConfigFormBase; |
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_provider : 1 | |
| request_token_lifetime: 7200 | |
| login_path: 'user/login' |
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
| # uninstall old version | |
| yum remove ruby rubygems -y | |
| # Install deps | |
| yum install -y libyaml libyaml-devel openssl libxml2-devel bison libxslt-devel openssl-devel tcl tk libffi tcl-devel tk-devel libffi-devel make | |
| # Download Ruby | |
| cd /usr/local/src/ | |
| wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
| tar -xvzf ruby-1.9.3-p392.tar.gz |
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
| acl internal { | |
| "127.0.0.0"/24; | |
| } | |
| backend web1 { .host = "192.168.1.1"; } | |
| backend web2 { .host = "192.168.1.2"; } | |
| director default_director round-robin { | |
| { .backend = web1; } | |
| { .backend = web2; } |