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 | |
define('START', 0); | |
define('END', 948); | |
$output_handle = fopen('./projects.csv', 'w'); | |
fputcsv($output_handle, [ | |
'category', | |
'development status', | |
'maintained', | |
'body', |
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
curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - | |
echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list | |
apt update | |
apt install -y openvpn |
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
{ | |
"exclude": [ | |
".git/**", | |
"misc/**", | |
"modules/**", | |
"profiles/**", | |
"themes/**", | |
"node_modules/**", | |
"bower_components/**" | |
], |
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 | |
* Contains \Drupal\example_module\Controller\ExampleModuleController. | |
*/ | |
// THIS FILE BELONGS AT /example_module/src/Controller/ExampleModuleController.php | |
namespace Drupal\example_module\Controller; |
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
id: example_content | |
label: Example content | |
migration_group: example | |
source: | |
plugin: example_content | |
target: db_migration | |
destination: | |
plugin: entity:node | |
process: | |
type: |
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 | |
* Contains \Drupal\example_migrate\Plugin\migrate\source\ExampleContent. | |
*/ | |
namespace Drupal\example_migrate\Plugin\migrate\source; | |
use Drupal\migrate\Plugin\migrate\source\SqlBase; |
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 | |
function om_exporter_drush_command() { | |
$items['export-newest'] = array( | |
'description' => 'Export Newest Content to CSV', | |
'aliases' => ['ex-new'], | |
'callback' => 'om_export_newest', | |
'arguments' => [ | |
'date' => '', | |
] |
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
/** | |
* @Then /^I fill in wysiwyg field "([^"]*)" with "([^"]*)"$/ | |
*/ | |
public function iFillInWysiwygOnFieldWith($locator, $value) { | |
$el = $this->getSession()->getPage()->findField($locator); | |
$fieldId = $el->getAttribute('id'); | |
if (empty($fieldId)) { | |
throw new Exception('Could not find an id for field with locator: ' . $locator); | |
} |
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
{ | |
"name": "mynamespace/myproject", | |
"description": "Composer file example", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://drupal-packagist.webflo.io/" | |
}, | |
{ | |
"type": "package", |
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
{ | |
"name": "mynamespace/myproject", | |
"description": "Example composer file with provides", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "http://drupal-packagist.webflo.io/" | |
}, | |
{ | |
"type": "package", |
NewerOlder