- Save the raw
motd
as~/motd
sudo mv ~/motd /etc/motd
- Restart terminal
This file contains 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 | |
// PHPUnit dies silently with FATAL ERRORS which | |
// makes it hard to debug the tests. | |
// For D8, add this to the end of web/core/tests/bootstrap.php. | |
// | |
// @see https://stackoverflow.com/a/33578611/201316 | |
register_shutdown_function('PHPUnit_shutdownFunction'); | |
function PHPUnit_shutdownFunction() { | |
// @see http://www.php.net/manual/en/errorfunc.constants.php |
This file contains 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_preprocess_node(). | |
* | |
* Example use of mytheme_get_user_picture() for non-standard cases. | |
* It is probably best to do this in hook_preprocess_user(). | |
*/ | |
function mytheme_preprocess_node(array &$variables) { | |
/** @var Node $node */ |
This file contains 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 | |
* An example of how to pass your custom variable to the first item in a multi-value | |
* entityreference field. | |
*/ | |
/** | |
* Implements hook_preprocess_field(). |
This file contains 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
diff --git a/og/config/schema/og.schema.yml b/og/config/schema/og.schema.yml | |
index 1bfd4662..3527276e 100644 | |
--- a/og/config/schema/og.schema.yml | |
+++ b/og/config/schema/og.schema.yml | |
@@ -160,3 +160,19 @@ field.widget.settings.og_autocomplete: | |
placeholder: | |
type: label | |
label: 'Placeholder' | |
+ | |
+views.field.og_membership_bulk_form: |
This file contains 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 | |
// if you have an account object ($user), then you can use $user->getTimezone(). | |
$timezone = \Drupal::currentUser()->getTimezone(); | |
$given = new \Drupal\Core\Datetime\DrupalDateTime("2016-08-01T12:30:00", $timezone); | |
$given->setTimezone(new \DateTimeZone("UTC")); | |
print $given->format("Y-m-d\Th:i:s"); |
$ brew install pv
-OR-
$ apt-get install pv
--------------
Warning: make a copy of the original box. The steps below could lead to an unworkable box.
--------------
- In the VM
cat /dev/zero > fill-me-up;sync;sleep 3;sync;rm -f fill-me-up
- Shut down the VM
- On the host (usually in
~/VirtualBox VMs/project_name_UUID/
)