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
| ================================================================================ | |
| Terminal hotkeys =============================================================== | |
| Ctrl+U # cut all before cursor | |
| Ctrl+K # cut all after cursor | |
| Ctrl+W # cut word before cursor | |
| Ctrl+Y # paste | |
| Ctrl+L # clear screen | |
| Ctrl+S # freeze output |
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 | |
| public static function getToken($page = true, Context $context = null) | |
| { | |
| if (!$context) { | |
| $context = Context::getContext(); | |
| } | |
| if (!Validate::isLoadedObject($context->customer)) { | |
| $unique = $context->cookie->id_guest; | |
| } else { | |
| $unique = $context->customer->id.$context->customer->passwd; |
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
| #-*- mode: nginx; mode: flyspell-prog; mode: autopair; ispell-local-dictionary: "american" -*- | |
| ## Define a zone for limiting the number of simultaneous | |
| ## connections nginx accepts. 1m means 32000 simultaneous | |
| ## sessions. We need to define for each server the limit_conn | |
| ## value refering to this or other zones. | |
| ## ** This syntax requires nginx version >= | |
| ## ** 1.1.8. Cf. http://nginx.org/en/CHANGES. If using an older | |
| ## ** version then use the limit_zone directive below | |
| ## ** instead. Comment out this | |
| ## ** one if not using nginx version >= 1.1.8. |
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 Drupal\Core\Database\Database; | |
| use Drupal\Core\Database\Query\Condition; | |
| use Drupal\image\Entity\ImageStyle; | |
| use Drupal\file\Entity\File; | |
| /** | |
| * ================================================================ | |
| * Implements hook_drush_command(). | |
| * ---------------------------------------------------------------- |
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 | |
| /** | |
| * Implements hook_drush_command(). | |
| */ | |
| function seed_derivatives_drush_command() { | |
| $items = array(); | |
| $items['seed_derivatives'] = array( | |
| 'description' => "Create image derivatives", |