Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| #!/bin/bash | |
| #Required | |
| apikey= | |
| domain= | |
| commonname=$1 | |
| orgid= | |
| #Change to your company details | |
| country= |
Helper setup to edit .yaml files with Vim:
List of general purpose commands for Kubernetes management:
| # must be unique in a given SonarQube instance | |
| sonar.projectKey=ONE80WEB:ONE80WEB | |
| # this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1. | |
| sonar.projectName=WEBSITE | |
| sonar.projectVersion=1.0 | |
| # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. | |
| # This property is optional if sonar.modules is set. | |
| sonar.sources=./web |
| function THEMENAME_theme_suggestions_block_alter(array &$suggestions, array $variables) { | |
| if (isset($variables['elements']['content']['#block_content'])) { | |
| $suggestions[] = 'block__' . $variables['elements']['content']['#block_content']->bundle(); | |
| } | |
| } |
Please note I created that sheet as a personal side note/draft and not everything is fully tested. There could be errors or better things to do. So if you spot something wrong or something that can be improved, feel free to comment below and I will do the changes.
Image path: {{ file_url(content.field_name['#items'].entity.uri.value) }}
| <?php | |
| namespace Drupal\sandbox\Form; | |
| use Drupal\Core\Form\FormBase; | |
| use Drupal\Core\Form\FormInterface; | |
| use Drupal\Core\Form\FormState; | |
| use Drupal\Core\Form\FormStateInterface; | |
| use Drupal\node\Entity\Node; | |
| use Drupal\user\Entity\User; |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * ELB Internal Route53 Updater | |
| * @author Cyril Aknine https://github.com/darylounet | |
| */ | |
| $vpcId = 'your-vpc-id'; | |
| $elbNetworkDescription = 'Your ELB network interface description (generated like "ELB your-elb-name")'; | |
| $route53InternalHostedZoneId = 'Your Route53 Internal hosted zone ID'; |
| input.form-submit.button-small { | |
| padding: 4px 8px; | |
| font-weight: bold; | |
| } | |
| .container-inline input.form-submit.button-small + .ajax-progress.ajax-progress-throbber .throbber { | |
| position: absolute; | |
| left: 19px; | |
| margin-top: 7px; | |
| } |