Direkt zum Inhalt
Startseite

Main navigation

  • Startseite
  • Neue Frage stellen!
User account menu
  • Anmelden
By Gast (nicht überprüft), 20 November, 2020

grep big-data | show 20 chars before, 10 chars after

Search for BERLIN in a very big file



cat very-big-bigfile.txt | grep -o -P '.{0,33}BERLIN.{0,44}'

 

By Gast (nicht überprüft), 19 November, 2020

Mit Wget Url aufrufen, Website-Dateien/daten + Logs an /dev/null leiten

 




1 * * * * wget -O /dev/null -o /dev/null my-example-website.com

 

By Gast (nicht überprüft), 16 November, 2020

grep + mv files

  1. Search / Grep  content of files in all-documents/
  2. Move files containing africa to documents-africa/

 

grep -siRlI 'africa' all-documents/ | xargs mv -t documents-africa/

 

By Gast (nicht überprüft), 16 November, 2020

tar - exclude multiple Files / Directories

tar --exclude='./dir2ignore' --exclude='./cache_etc' -zcvf /backup/myarchive.tar.gz .

 

By Gast (nicht überprüft), 16 November, 2020

Drush Cron für nur ein (Drupal) Modul

So geht es:

drush php-eval 'my_custom_module_cron();'

 

By Gast (nicht überprüft), 8 November, 2020

Drupal 8 - Inline Template mit Raw - HTML

Controller könnte so aussehen:

<?php

class myController extends ControllerBase
{
    public function myFunc1()
    {
        $html = " ... ";
        return [
            '#type' => 'inline_template', 
            '#template' => '{{ html|raw }}', 
            '#context' => ['html' => $html]
        ];
    }
}

 

By Gast (nicht überprüft), 3 Oktober, 2020

mysqldump: Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

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

 

 

By Gast (nicht überprüft), 26 September, 2020

Linux -> find + grep : ignore "Permission denied" errors

Code:

 find / -name art  2>&1 | grep -v "Permission denied"

 

By Gast (nicht überprüft), 23 September, 2020

Apache solr : install / start / stop Tipps

 

service solr status

https://lucene.apache.org/solr/guide/8_5/taking-solr-to-production.html

By Gast (nicht überprüft), 23 September, 2020

Solr Error : Your open file limit is currently 1024. It should be set to 65000 to avoid operational disruption

*** [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

Seitennummerierung

  • First page
  • Vorherige Seite
  • …
  • Page 4
  • Page 5
  • Page 6
  • Page 7
  • Aktuelle Seite 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • …
  • Nächste Seite
  • Last page

Neueste Kommentare

  • Die Lösung ist:

    # export…

    1 Monat 3 Wochen ago
    Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
    Read more
  • IT ist Grundlage der EDV

    3 Wochen 5 Tage ago
    Gibts Unterschied zwischen EDV und IT?
    Read more
  • Bluetooth erkennt Gerät (Hörgeräte) nicht

    3 Wochen 5 Tage ago
    Bestes Computer Forum mit oder ohne Registrierung
    Read more
  • DB Export als .zip …

    7 Monate ago
    Mysqldump - Backup Database to .gz with Date / TimeStamp
    Read more
  • Notice: Undefined index: limit in Drupal\views\Plugin\views\disp

    8 Monate 1 Woche ago
    Notice: Trying to access array offset on value of type null in Drupal\views\Plugin\views\display\EntityReference->query() (Zeile 195 in ... EntityReference.php)
    Read more
  • Scaner auf Laptop einrichten

    9 Monate 2 Wochen ago
    Computer Forum ohne Anmeldung
    Read more
  • Cronjobs

    9 Monate 3 Wochen ago
    rsynch & ssh : Upload (Files & Directories) to Remote Server
    Read more
  • Remote Upload & Sync …

    9 Monate 3 Wochen ago
    rsynch & ssh : Upload (Files & Directories) to Remote Server
    Read more
  •   rsync + Password

    9 Monate 3 Wochen ago
    rsynch & ssh : Upload (Files & Directories) to Remote Server
    Read more
  • Web3 ist Dezentrales…

    1 Jahr 2 Monate ago
    Was ist Web3?
    Read more
Die E-Mail Adresse, die den Newsletter erhalten soll.
You are already subscribed
Manage existing

Tools

  • Cookie settings
  • Inhalt hinzufügen
  • Neuester Inhalt
RSS feed

Fußbereich

  • Allgemeine Geschäftsbedingungen - Datenschutz - Impressum