Software engineer >> Sysadmin >> Devops >> SRE

Note book to help you and me remember some tricks

Page 3 of 6

Docker: LAMP development environment with XDebug + VSC ready to use! (a pampered container) – Part 1 – Advantages and disadvantages

NOTE: This blog post was first posted in 2019 on another blog site. Fed up with setting up an environment at each project startup? You change your PC, and you have to reinstall everything? Your development works on your PC… Continue Reading →

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====

You are on a CentOS server, connected as a non-root user, for example here as the user owner of the tomcat installation folder, let’s call it mytomcatuser. And when you want to stop tomcat using the systemd tomcat.service then you… Continue Reading →

Security headers in your web site

You can scan your website here (don’t forget to check ‘hide result’): https://securityheaders.com Then add the following code to your .htaccess or directly inside de server configuration file if you have access to it: Now it’s better:

Oracle Cloud Infrastructure: share a block storage between node with OCFS2

A regular filesystem is not intended to be mounted on more than one server at a time. And doing otherwise can lead to serious inconsistencies, damaging its logical structure. For instance, being unaware of each other’s activities, two servers may… Continue Reading →

Detect Active Directory users password expiration and send a reminder email

The following code must be executed as administrator on your active directory server: https://github.com/nfourniol/scripts/tree/main/windows/activeDirectory

Start/Stop windows services from shell script on linux server

Context: you have a shell script running on a linux server and you want this shell script be able to stop or start services on a windows server Windows: Create a local administrator Create a local administrator that we call… Continue Reading →

expdp / impdp causes Oracle segmentation fault (core dumped)

This error is caused because of a malformed command line impdp / expdp. Also it depends on your oracle server version, in recent oracle servers you will probably have less problem with the pattern combination. For instance you have several… Continue Reading →

Do not trust chatGPT answers

Just be careful, chatGPT is a black box, you don’t know how it resolves your question. Furthermore on a question when you lack some knowledge, your no able to evaluate the quality of the answer. For instance, I’ve just knock… Continue Reading →

Tomcat start with ansible doesn’t work, tomcat starts but process doesn’t stay active

It happens because when ansible close it’s ssh connection, and when the ssh connection is closed the kernel sends SIGHUP to the controlling process of the ssh connection. But when executing startup.sh, the java process will receive the SIGHUP and… Continue Reading →

.bash_profile environment variables are not set with ansible connection when I become an unprivileged user

This happens when you use the become directive, for instance: The documentation says two things: The become_user set to user with desired privileges — the user you become, NOT the user you login as. Does NOT imply become: yes, to… Continue Reading →

« Older posts Newer posts »

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

Theme by Anders NorenUp ↑