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 | |
use Robo\Tasks; | |
use Drupal\Core\DrupalKernel; | |
use Symfony\Component\HttpFoundation\Request; | |
$GLOBALS['drupal_autoloader'] = require_once 'web/autoload.php'; | |
/** |
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
diff --git a/includes/environment.inc b/includes/environment.inc | |
index a4717048..a2416424 100644 | |
--- a/includes/environment.inc | |
+++ b/includes/environment.inc | |
@@ -18,7 +18,7 @@ use Webmozart\PathUtil\Path; | |
* Log PHP errors to the Drush log. This is in effect until Drupal's error | |
* handler takes over. | |
*/ | |
-function drush_error_handler($errno, $message, $filename, $line, $context) { | |
+function drush_error_handler($errno, $message, $filename = NULL, $line = NULL, $context = NULL) { |
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 | |
$capital_names = [ | |
'Kabul', | |
'Tirana', | |
'Algiers', | |
'Andorra la Vella', | |
'Luanda', | |
'Saint John\'s', | |
'Buenos Aires', | |
'Yerevan', |
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
drush sql-dump --tables-list=`drush sqlq "show tables like '_raw_%'" | xargs | sed -e 's/ /,/g'` > /tmp/only_users.sql |
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 | |
// https://pantheon.io/docs/client-ip/ | |
$remote_ip = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"]; |
NewerOlder