Quick configs, useful commands, tips-and-tricks

Some notes which can later become fully qualified articles, or stay as history and handy help.

Docker in GitLab CI misbehaving

Fix the GitLab CI “lookup docker … server misbehaving” error with Docker-in-Docker by removing network_mode from the runner’s config.toml.

Export and import Database in MySQL

The two commands you need to export a MySQL database with mysqldump and import the dump into another database, with every parameter explained.

Create user and database in MySQL 8

A copy-paste SQL snippet to create a database and a user in MySQL 8 and grant that user all privileges on it, without the usual fluff.

Call Faker in Tinker

How to create a Faker instance in Laravel Tinker with a single line, so you can generate fake data for quick manual testing.

Laravel config for MailHog

The .env settings that make Laravel send email to MailHog over SMTP on port 1025, so you can catch and inspect outgoing mail locally.