Dateinamen, String in vielen Dateien finden und ersetzen mit "find + sed"
find /var/www/mysite1 -type f -exec sed -i 's/AlteURL\.com/neue-URL.com/g' {} +
find /var/www/mysite1 -type f -exec sed -i 's/AlteURL\.com/neue-URL.com/g' {} +
So kann man Variable permanent (Laufzeit) speichern.
<?php
myvars( ["city" => "bonn" ] );
myvars( ["alter" => "33" ] );
myvars( ["auto" => "bmw" ] );
echo " Stadt: " . myvars("city");
echo " Alter: " . myvars("alter");
echo " Auto: " . myvars("auto");
function myvars( $arr ){
static $vars;
if( is_array($arr) ){
$key = key( $arr );
$vars[ $key ] = $arr[ $key];
} else {
return $vars[ $arr];
}
}
?>
Woran liegt das, dass weder drupal/search_api_solr noch drupal/search_api aktualisiert werden kann?
# composer require 'drupal/search_api:^1.14'
./composer.json has been updated
Gathering patches for root package.
No patches supplied.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Drupal Update 8.6.16 auf 8.7.5
Woran liegt das, dass ich so eine Meldung bekomme:
This branch of Entity Browser is not compatible with the version of Media Entity installed. (Currently using Entity Browser This branch of Entity Browser is not compatible with the version of Media Entity installed.)
Do you wish to run all pending updates? (y/n): y
Performing system_update_8701 [ok]
Performing comment_update_8700 [ok]
Kann mir jemand bitte SOLID Prinzipien leicht erklären.
iptables aktuelle Rules
#iptables -S
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
-N FORWARD_IN_ZONES
-N FORWARD_IN_ZONES_SOURCE
-N FORWARD_OUT_ZONES
-N FORWARD_OUT_ZONES_SOURCE
-N FORWARD_direct
-N FWDI_public
-N FWDI_public_allow
-N FWDI_public_deny
-N FWDI_public_log
-N FWDO_public
-N FWDO_public_allow
-N FWDO_public_deny
-N FWDO_public_log
-N INPUT_ZONES
-N INPUT_ZONES_SOURCE
-N INPUT_direct
-N IN_public
-N IN_public_allow
-N IN_public_deny
-N IN_public_log
-N OUTPUT_direct
rules nach flush
sieht gleich aus
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host
Wenn ich Thunder installieren möchte bekomme ich diese Meldung:
[ERROR] You must have the pdo_sqlite PHP extension installed. See core/INSTALL.sqlite.txt for instructions.
Woran liegt das?