Execute and test only one method with Laravel Dusk

When you are running Laravel Dusk tests from the terminal, with the command

$ php artisan dusk

sometimes you need to execute and test only one method. You can do it with the “–filter” parameter and the name of the method:

$ php artisan dusk --filter testUserInsertBlankSpacesAndThePasswordDoesNotChange

“403 Invalid signature” when I try to verify an email in Laravel

When I try to verify an email in Laravel I get the error:

403 Invalid signature

The problem is a misconfiguration in the nginx configuration file (the Server Blocks).

The bad configuration was

location / {
    try_files $uri $uri/ /index.php?q=$uri&$args;
}

The good configuration is

 location / {
    try_files $uri $uri/ /index.php?$query_string;
}

Aprende a gestionar tu WordPress desde la línea de comandos en 10 minutos. WordCamp Madrid 2019

En este enlace (PDF, 509 kB, español) dejo las transparencias de la presentación «Aprende a gestionar tu WordPress desde la línea de comandos en 10 minutos» de la WordCamp Madrid del día 6 de abril de 2019.

También puedes escuchar el audio de una grabación previa a la presentación o descargarlo en formato MP3 (7,49 MB): «Aprende a gestionar tu WordPress desde la línea de comandos en 10 minutos».

 

Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/ 404 Not Found

Executing apt update in a Debian 8 I get the error

W: Failed to fetch http://ftp.debian.org/debian/dists/wheezy-backports/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:2564:a119::148:12 80]
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/source/Sources 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/source/Sources 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]
W: Failed to fetch http://ftp.debian.org/debian/dists/jessie-backports/main/binary-amd64/Packages 404 Not Found [IP: 2001:41d0:202:100:213:32:5:7 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.