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
| # Basically the nginx configuration I use at konklone.com. | |
| # I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
| # | |
| # To provide feedback, please tweet at @konklone or email [email protected]. | |
| # Comments on gists don't notify the author. | |
| # | |
| # Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
| # Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
| server { |
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
| apt-get install apache2 php5 mysql-server phpmyadmin git-core vim curl php5-curl sendmail | |
| # active apache mods | |
| a2enmod rewrite headers expires | |
| # install pear | |
| wget http://pear.php.net/go-pear.phar | |
| php go-pear.phar | |
| # install drush |
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 | |
| * Drush module to check if all translatable strings are safe to translate. | |
| */ | |
| /** | |
| * Implements hook_drush_help(). | |
| */ | |
| function i18n_check_drush_help($section) { |
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 | |
| /**********************************************************************************/ | |
| /* Generate a list of filenames to parse in filenames.txt (1 per line) */ | |
| /* => running "$ ls -1 > filenames.txt" will output just what you need */ | |
| /* */ | |
| /* Run the parser.php script from the same directory or change the TXT file path */ | |
| /* => Ideally, you just need to run it from the command line: "$ php parser.php" */ | |
| /* */ | |
| /* Copy/paste the queries that are returned in the MySQL prompt */ | |
| /* => MySQL will then return files that are managed by Drupal */ |
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
| dependencies[] = ctools | |
| ; Views Handlers | |
| files[] = views/mymodule_handler_handlername.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
| /* Row and Column defaults */ | |
| .row { margin-left: auto; margin-right: auto; margin-top: 0; margin-bottom: 0; max-width: 62.5em; width: 100%; } | |
| .row .row.collapse { margin-left: 0; margin-right: 0; max-width: none; width: auto; } | |
| .row .row { margin-left: -0.9375em; margin-right: -0.9375em; max-width: none; width: auto; } | |
| .row.collapse .column, .row.collapse .columns { padding-left: 0; padding-right: 0; float: left; } | |
| .column, .columns { padding-left: 0.9375em; padding-right: 0.9375em; width: 100%; float: left; position: relative; } | |
| /* Up to 640px */ | |
| @media only screen { | |
| .small-1 { width: 8.33333% } |
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
| [alias] | |
| a = add | |
| aa = add -A | |
| ac = "!f() { curl $@ | git apply --index; }; f" | |
| ac3 = "!f() { curl $@ | git apply -3 --index; }; f" | |
| amend = commit --amend -C HEAD | |
| ap = add -p | |
| app = apply --index | |
| br = branch | |
| cb = checkout -b |
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
| #! /bin/bash | |
| ###################### | |
| ## Script de création de virtualhost + utilisateur + base de données | |
| ###################### | |
| ## /!\ Penser a modifier [ROOTPASSWORD] pour mysql | |
| ###################### | |
| ## USER | |
| # Prompt user informations |
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 theme_css_alter(&$css) { | |
| // Css Not allowed for theming | |
| $not_allowed_css = array( | |
| 'modules/system/system.base.css', | |
| 'modules/system/system.menus.css', | |
| 'modules/system/system.messages.css', | |
| 'modules/system/system.theme.css', | |
| 'sites/all/modules/contrib/ctools/css/ctools.css', | |
| ); | |
| foreach ($css as $css_filename => $css_settings) { |
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 | |
| // Twig development settings. | |
| $settings['twig_debug'] = TRUE; | |
| $settings['twig_auto_reload'] = TRUE; | |
| $settings['twig_cache'] = FALSE; | |
| // Use FileStorage. | |
| // @see http://drupal.org/node/1908440 | |
| // @see http://drupal.org/node/1899842 |