Category: Hemsidor

  • NET::ERR_CERT_INVALID – Dockerfile docker-unifi-controller

    There’s a secret passphrase built into the error page. Just make sure the page is selected (click anywhere on the screen), and just type thisisunsafe.

  • SQL Update

    by

    in

    UPDATE `Smslog` SET`State`=7 WHERE RIGHT(‘2017-02-13’,Idate) AND State = 14

  • Split IBDATA1

    Dump all databases by calling: mysqldump –extended-insert –all-databases –add-drop-database –disable-keys –flush-privileges –quick –routines –triggers > all-databases.sql Stop the MySQL server; Rename or remove (in case you’ve already backed it up) the MySQL data directory and create an empty one with the same name and permissions; Make the appropriate changes in my.cnf; innodb_file_per_table Re-initialize the database…

  • Regexp

    by

    in

    Simple regex Regex quick reference [abc]     A single character: a, b or c [^abc]     Any single character but a, b, or c [a-z]     Any single character in the range a-z [a-zA-Z]     Any single character in the range a-z or A-Z ^     Start of line $     End of line \A …

  • PHP i WordPress

    För att köra PHP kod i WordPress behöver man en kod exekverare. Jag använder mig av PHPExec-2