$ tmux
CTRL+B C -> create new pane
CTRL+B [num] -> go to a pane
CTRL+D -> finish bash session, closes the pane. Closing all panes will destroy the window and thus the tmux
| <?php | |
| use Drupal\Core\Form\FormStateInterface; | |
| function example_ajax_form_alter() { | |
| $ajax_form_request = \Drupal::request()->query->has(FormBuilderInterface::AJAX_FORM_REQUEST); | |
| if ($ajax_form_request) { | |
| if (!$form_state->isProcessingInput()) { | |
| \Drupal::logger('example')->notice('first pass'); | |
| } |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| numbers:['1','2','3','4'], | |
| letters:['a','b','c','d'] | |
| }); |
| $values = FieldConfig::loadByName('node', 'BUNDLE', 'FIELD')->getSetting('allowed_values'); |
| <?php | |
| /** | |
| * Implements hook_migration_plugins_alter(). | |
| */ | |
| function my_module_migration_plugins_alter(array &$migrations) { | |
| foreach ($migrations as $id => $configuration) { | |
| if (!empty($migrations[$id]['idMap'])) { | |
| // Do not override existing values. | |
| continue; |
| /** | |
| * Helper function for adding translations. | |
| * | |
| * @param array $strings | |
| * The array with strings and their translations. | |
| */ | |
| function _my_module_add_translations(array $strings) { | |
| // Get locale storage service. | |
| $storage = \Drupal::service('locale.storage'); |
This is probably a common issue for people who wants to deploy serveral repository on one VPS or VM.
This is not going to be rocket science.
The first step is to generate your first ssh key, for this type the following command line in your terminal:
ssh-keygen -t rsa -b 4096 -C "[email protected]"
When the command CLI is asking you if you want to use a passphrase you might want to press ENTER in order to don't have to type it everytime you will want to pull your repository.
Now copy the content of your public key and add it to Github in your first repository (Settings > Deploy keys). For example on debian it might be: