create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| <?php | |
| namespace Drupal\oht_migrate\Plugin\migrate\process; | |
| use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
| use Drupal\migrate\Annotation\MigrateProcessPlugin; | |
| use Drupal\migrate\Plugin\migrate\process\MigrationLookup; | |
| use Drupal\migrate\Plugin\MigratePluginManagerInterface; | |
| use Drupal\migrate\Plugin\MigrationInterface; | |
| use Drupal\migrate\ProcessPluginBase; |
| import React, { useCallback, useState } from 'react'; | |
| import ConfirmationDialog from 'components/global/ConfirmationDialog'; | |
| export default function useConfirmationDialog({ | |
| headerText, | |
| bodyText, | |
| confirmationButtonText, | |
| onConfirmClick, | |
| }) { | |
| const [isOpen, setIsOpen] = useState(false); |
| <?php | |
| /** | |
| * Debugging using the database connection. | |
| */ | |
| /** @var \Drupal\Core\Database\Connection */ | |
| $connection = \Drupal::service('database'); | |
| $query = $connection->select('node', 'node'); | |
| $query->fields('node', ['nid']) |
| # Install PEAR (PHP Extension and Application Repository) | |
| $ sudo php /usr/lib/php/install-pear-nozlib.phar | |
| $ sudo pear upgrade-all | |
| $ sudo pear install --alldeps PHP_CodeSniffer | |
| # Add PEAR to `php.ini` Include Path | |
| $ nano /etc/php.ini | |
| ;include_path = ".:/php/includes" | |
| include_path = ".:/php/includes:/usr/lib/php/pear" |
| <?php | |
| // Add base field to entity | |
| $storage_definition = BaseFieldDefinition::create('email') | |
| ->setLabel(t('Email address')) | |
| ->setDescription(t('The email address associated with the event participant.')) | |
| ->setDisplayOptions('form', [ | |
| 'region' => 'hidden', | |
| 'weight' => 0, | |
| ]); |
| /** | |
| * all | |
| * allEqual | |
| * approximatelyEqual | |
| * arrayToCSV | |
| * arrayToHtmlList | |
| * attempt | |
| * average | |
| * averageBy | |
| * bifurcate |
| // 'object spread property' is only available in ES9 (use 'esversion: 9'). (W119) | |
| // 1. Rest и Spread в JavaScript (Extended practice). | |
| const user = { id: 100, name: "Howard Moon" }; | |
| const userWithPass = { ...user, password: "Password!" }; | |
| console.group("Adding property password to object userWithPass"); | |
| console.log(user); | |
| console.log(userWithPass); | |
| console.groupEnd(); |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # BASH Configuration and Aliases | |
| # source: http://natelandau.com/my-mac-osx-bash_profile/ | |
| # source: https://github.com/mathiasbynens/dotfiles | |
| # Sections: | |
| # 0. Execute Only Once (if you want) | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |