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
| 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
| # 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 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
| <?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
| <?php | |
| use \Solarium\Client as Client; | |
| $config = array( | |
| 'endpoint' => array( | |
| 'localhost' => array( | |
| 'host' => '127.0.0.1', | |
| 'port' => 8080, | |
| 'path' => '/solr4/', |
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
| # .bashrc | |
| # User specific aliases and functions | |
| alias rm='rm -i' | |
| alias cp='cp -i' | |
| alias mv='mv -i' | |
| alias dl='drush dl' | |
| alias en='drush en' | |
| alias dis='drush dis' |
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
| // web/index_dev.php | |
| require_once __DIR__.'/../vendor/autoload.php'; | |
| //inicio de la aplicación | |
| $app = new Silex\Application(); | |
| //Index | |
| $app->match('/', function () { |
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
| {% extends "base.html.twig" %} | |
| {% block aside %} | |
| Aside | |
| {% endblock %} |
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
| {% extends "base.html.twig" %} | |
| {% block content %} | |
| contenido | |
| {% endblock %} |