Notities

Notities

ing. M.A.C.M. (Martijn) van den Boom

Computer Infrastructure Engineer
ingenieur, docent en mentor

Social Media Links:

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

Hierbij de broncode van een C programma om een Zombie proces in Linux te maken en deze te kunnen analyseren. vim create_zombie_process.c #include <stdlib.h> #include <sys/types.h> #include <unistd.h> int main () { pid_t child_pid; child_pid = fork (); if (child_pid > 0) { sleep (60); } else { exit (0); } return 0; } Compileer de C broncode in een uitvoerbaar programma: gcc create_zombie_process.c Start het programma: ./a.out Open een tweede Terminal en bekijk de proces...

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

Zie hieronder een voorbeeld script om aan het einde van de regel helemaal rechts uitgelijnd een SUCCES melding in het groen of een FAILED melding in het rood te krijgen. #!/bin/bash # Set the message success_message=&quot;Your command was successful&quot; failed_message=&quot;Your command failed&quot; # Set the &quot;OK&quot; string in green ok=&quot;$(tput setaf 2)[SUCCES]$(tput sgr0)&quot; failed=&quot;$(tput setaf 1)[FAILED]$(tput sgr0)&quot; # Get the width of the terminal term_width=$(tput...

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

Checkmk installation on Rocky Linux 9.3 dnf install epel-release setsebool -P httpd_can_network_connect 1 firewall-cmd --zone=public --add-service=http --permanent firewall-cmd --reload wget https://download.checkmk.com/checkmk/2.2.0p18/check-mk-raw-2.2.0p18-el9-38.x86_64.rpm yum install check-mk-raw-2.2.0p18-el9-38.x86_64.rpm omd version omd create monitoring omd start monitoring http://localhost.localdomain/monitoring/ user: cmkadmin with password: <given> omd su monitoring (For command...

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

Installing the VirtualBox Guest Additions on Rocky Linux 9.3 dnf install epel-release dnf update --refresh dnf update kernel-* reboot (optional) dnf install dkms kernel-devel kernel-headers gcc make bzip2 perl elfutils-libelf-devel rpm -q kernel-devel uname -r Top menu: Devices -> Insert Guest Additions CD-Image Run (optional) cd /run/media/ ./VBoxLinuxAdditions.run

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

PowerShell computer resource monitor script with cpu percentage and advanced memory information PowerShell Resource monitor $app=&quot;notepad&quot; $ids = Get-Process $app | Select-Object -Property Id | ForEach-Object {$_.Id} $filedate = Get-Date -format &quot;yyyy-MM-dd&quot; #echo $pids foreach ($id in $ids) { $date = Get-Date -format &quot;yyyy-MM-dd HH:mm:ss&quot; # process CPU information $ProcessId = $id $Process = Get-WmiObject -Query &quot;SELECT * FROM...

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

In de setup die ik gebruik heb ik de volgende 3 apparaten: iMac 27” late 2015 met OpenCore Legacy Patcher Sonoma: 14.1.1 MacBook Pro 15” late 2016 met OpenCore Legacy Patcher Sonoma: 14.1.1 iPad 10.2” 7th Gen met iPadOS-versie: 17.1.1 Ze zijn op hetzelfde WiFi netwerk verbonden. Stappen: Op de iMac ga naar: System Settings -> Displays Klik op het plusje rechts naast de Built-in Display Kies onder Mirror or Extend to: MacBook Pro Kies onder Link keyboard and mouse to: iPad Nu zie je onder...

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

$ ls -al /usr/local/opt/ | grep -i openjdk $ brew install jenv $ jenv add /Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home/ $ jenv versions $ jenv local 1.8 $ java -version $ jenv global 1.8 $ java -version $ jenv shell 1.8 $ java -version $ jenv versions

ing. M.A.C.M. (Martijn) van den Boom

1 minuut leestijd

How to create an ISO file of a directory on macOS that can be mounted as a CDROM in MS-DOS 6.22 ? Start Disk Utility on macOS Go to: File -> New Image -> Image from Folder Choose the directory and press Choose Set Image Format to: DVD/CD master and press Save A *.cdr file will be created Go to the command line Cd to the directory with the *.

Recente berichten

Categorieën

Over Mij

Sponsor me link:
ko-fi.com/martijnvandenboom
paypal.me/ingmacmvandenboom
buymeacoffee.com/ingvdboom