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 | |
| // ... | |
| define('PREDIS_BASE_PATH', DRUPAL_ROOT . '/sites/all/libraries/predis/lib/'); | |
| $conf['redis_client_interface'] = 'Predis'; | |
| $conf['cache_backends'][] = 'sites/all/modules/redis/redis.autoload.inc'; |
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
| server { | |
| listen 80; | |
| server_name site.com www.site.com ; | |
| server_tokens off; | |
| aio off; | |
| directio off; | |
| sendfile on; |
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
| # File ~/.config/fish/config.fish | |
| function _git_branch_name | |
| echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
| end | |
| function fish_prompt | |
| # Alias | |
| alias grep="grep -n --color -T" | |
| # Prompt |
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
| server { | |
| listen 80; | |
| server_name wawa.com www.wawa.com; | |
| server_tokens off; | |
| aio off; | |
| directio off; | |
| sendfile on; |
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 hook_form_node_type_form_alter(&$form, $form_state) { | |
| $form['workflow']['node_options']['#options']['sample'] = t('Sample'); | |
| $form['workflow']['node_options']['rotativa']['#description'] = t('Sample enable'); | |
| //$form['#validate'][] = 'rotativa_node_type_form_validate'; | |
| } | |
| /* Validate if Sample is active*/ | |
| function my_node_type_valid($type) { | |
| $options = variable_get("node_options_$type", 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
| 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; } |
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
| 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
| <?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
| oauth_admin_form: | |
| pattern: '/admin/config/services/oauth' | |
| defaults: | |
| _form: 'Drupal\oauth\Form\OAuthSettingsForm' | |
| requirements: | |
| _permission: 'administer oauth' |