Software engineer >> Sysadmin >> Devops >> SRE

Note book to help you and me remember some tricks

Page 2 of 6

Ansible: Your shell command is executed slightly differently under ansible

You ansible shell command is executed slightly differently from what you could write manually inside your linux console.For instance the following command executed manually will display nothing. But the same command with ansible will display itself: The reason is that… Continue Reading →

Software developers how to locally test the sending of email inside your applications

Use docker mailDev https://hub.docker.com/r/maildev/maildev Then in your application you can configure the following smtp server localhost with smtp port 1025 localhost:1025 All the email you send will not go outside of your computer, but they will go inside the docker… Continue Reading →

Ansible shell execution: no environment variable are loaded

When you execute shell script with ansible module ansible.builtin.shell, bash is invoked as a non-interactive login shell. Consequently, environment variables from the user are not loaded. If you execute man bash, you’ll see: The solution is juste to explicitly load… Continue Reading →

dkim=none (message not signed) when emails sent not locally

You’ve configured opendkim for your smtp server but when clients use your smtp servers emails are not signed. By default opendkim trust only local host, you have to specified all the host to trust. Uncomment the following line in opendkim.conf:… Continue Reading →

How detect that an email sent by your application has been opened

Currently there is no 100% reliable solution, but the most “reliable” solution is the one used by email marketing platforms such as MailChimp, MailJet, SendInBlue and so on. Thus it is a question of sending an email in HTML format… Continue Reading →

ORA-00600: internal error code, arguments: [kqd-objerror$], …

Do you have this kind of error message ? It means that one or more object is invalid. And in the error message you have the object name causing this error and then you can find the ids of instances… Continue Reading →

Docker: LAMP development environment with XDebug + VSC ready to use! (a pampered container) – Part 5 – Conclusion

Conclusion Let’s sum up what we’ve achieved: Also remember that we have placed our different files related to the docker part inside a .devcontainer/ folder at the root of our PHP project which allows you to put it in a… Continue Reading →

Docker: LAMP development environment with XDebug + VSC ready to use! (a pampered container) – Part 4 – debug in Visual Studio Code

Introduction to VSC: Visual Studio Code Maybe you don’t know VSC? Don’t panic, team Bichon will introduce you to him. Visual Studio Code is a free, extensible, open source code editor developed by Microsoft for Windows, Linux and macOS. This… Continue Reading →

Docker: LAMP development environment with XDebug + VSC ready to use! (a pampered container) – Part 3 – start your containers

mod_deflate.conf In the folder .devcontainer/docker/ you have created an empty file called mod_deflate.conf. Here are the contents to put in this file: We will explain its usefulness in the chapter “Dockerfile” just after the definition of the Dockerfile. This file… Continue Reading →

Docker: LAMP development environment with XDebug + VSC ready to use! (a pampered container) – Part 2: your PHP project

Your PHP project on which you want to develop Objective: create a simple php project that is representative of a PHP project you might be working on. This project will serve as a support for the rest of the tutorial…. Continue Reading →

« Older posts Newer posts »

© 2025 Software engineer >> Sysadmin >> Devops >> SRE — Powered by WordPress

Theme by Anders NorenUp ↑