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

3-Minute Read

You can use this script to retrieve the name of your USB stick. The name of your USB stick can be used in Apple's sudo command to create a USB installer. Step 1: Open the Terminal application Step 2: Go to your home directory, type: # cd Step 3: Optionally create a scripts directory, type: # mkdir scripts Step 4: Navigate to the newly created scripts directory, type: # cd scripts

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

1-Minute Read

See below an example script to display a SUCCESS message in green or a FAILED message in red, right-aligned at the end of the line. #!/bin/bash # Set the message success_message="Your command was successful" failed_message="Your command failed" # Set the "OK" string in green ok="$(tput setaf 2)[SUCCES]$(tput sgr0)" failed="$(tput setaf 1)[FAILED]$(tput sgr0)" # Get the width of the terminal term_width=$(tput cols)+9 # Calculate the number of dots needed...

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

1-Minute Read

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

Recent Posts:

Categories

About

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