Note book to help you and me remember some tricks

Author ndl_admin

VSCode + Free LLM model on private server with or without GPU (CPU-only)

Prerequisites Private server with 8 or 12 cores (8 or up to 12 virtual CPU if your server is a virtual machine). Install Ollama + LLM models To easily manager LLM model you can install Ollama. It’s easier to manage… Continue Reading →

Terraform with OCI (Oracle Cloud Infrastructure)

In this post I will describe how to test terraform with OCI, for instance from your windows laptop. This is not intended for production server. Install OCI cli on your desktop or server On your laptop (or on your server)… Continue Reading →

Change the domain name of your wordpress site without a wordpress plugin

In the following information, we work with a MySQL database. We deals with the case of changing nicodevlog.com to codetodevops.com. I wrote this article after I changed nicodevlog.com to codetodevops.com Backup your database Firstly, make a backup of your database…. Continue Reading →

Do you know the difference between sleep 1000, sleep 1000 & and (sleep 1000 &)? ChatGPT thinks it knows but is wrong

So I asked chatgpt a question for an experimented Linux system administrator. The question Here is the question: You are a software engineer and linux system administror. You are an expert in using shell script.can you compare the following 3… Continue Reading →

OCI: increase the size of a block volume that is attached to a single instance (not shareable block volume)

WARNING: in the following example we will create an ext4 partition, but you must be informed that ext4 is a filesystem that cannot manage more than 2TiB (cannot manage more than 1TiB with 256 bytes inodes, or cannont manage more… Continue Reading →

OCI: attach a new block volume to a single host

In the OCI console, go to the block volumes menu and create a block volume. Choose in which compartment you want to create your block volume (same compartment as your host), and choose a custom size. Let the other settings… 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 →

« Older posts

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

Theme by Anders NorenUp ↑