Search for BERLIN in a very big file
cat very-big-bigfile.txt | grep -o -P '.{0,33}BERLIN.{0,44}'
Search for BERLIN in a very big file
cat very-big-bigfile.txt | grep -o -P '.{0,33}BERLIN.{0,44}'
1 * * * * wget -O /dev/null -o /dev/null my-example-website.com
grep -siRlI 'africa' all-documents/ | xargs mv -t documents-africa/
tar --exclude='./dir2ignore' --exclude='./cache_etc' -zcvf /backup/myarchive.tar.gz .
So geht es:
drush php-eval 'my_custom_module_cron();'
Controller könnte so aussehen:
<?php
class myController extends ControllerBase
{
public function myFunc1()
{
$html = " ... ";
return [
'#type' => 'inline_template',
'#template' => '{{ html|raw }}',
'#context' => ['html' => $html]
];
}
}
Command 1:
drush sql:dump | gzip -c > /home/backup/db-$(date +%Y-%m-%d-%H%M).sql.gz
Error:
mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
Lösung:
drush sql:dump --extra-dump=--no-tablespaces
Code:
find / -name art 2>&1 | grep -v "Permission denied"
service solr status
https://lucene.apache.org/solr/guide/8_5/taking-solr-to-production.html
*** [WARN] *** Your open file limit is currently 1024. It should be set to 65000 to avoid operational disruption.
If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to false in your profile or solr.in.sh