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

Follow the below steps to install Microsoft Visual Studio Code IDE on Linux from its repository: sudo rpm –import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c ‘echo -e “[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc” > /etc/yum.repos.d/vscode.repo' sudo dnf install code -y

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

1 minuut leestijd

For real-time applications, Go and Rust are the top choices due to their lightweight concurrency and memory efficiency. Combine them for a balanced approach: Go for high-level logic and Rust for performance-critical tasks. Use C/C++ for legacy systems and Java for enterprise-level applications where real-time performance is less critical. When using Go, the chance of classic concurrency errors like race conditions, deadlocks, and resource leaks is significantly reduced. This is thanks to...

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

1 minuut leestijd

Dear reader, I would like to refer you to my GitHub page for a nice and simple project enabling the dark mode effect on a website. I want to share this with you so that it can inspire you and enable you to do a similar implementation that you can use on your own website. See: https://github.com/martijnvandenboom/darkmode-test Best regards, Martijn P.S. leave a message I would like to hear from from you

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

1 minuut leestijd

For Dutch Euro use: .getCurrencyInstance(new Locale(“nl”, “NL”)) For Swiss Franc use: .getCurrencyInstance(new Locale(“de”, “CH”)) import java.text.NumberFormat; import java.util.Locale; public class prog_002_variables { public static void main(String[] args){ String message; int year; double prijs; message = "De beste wensen voor: "; year = 2025; prijs = 2.50; // Combine the creation of the Locale and the NumberFormat in one line...

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

1 minuut leestijd

Type in the terminal of Visual Studio Code # git init # git add . # git commit -m &ldquo;initial commit&rdquo; Create a new repository on GitHub # git remote add origin <the new .git URL> Example: # git remote add orign https://github.com/martijnvandenboom/Java_tools.git # git push -u origin main

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

3 minuten leestijd

Dit script kun je gebruiken voor het opvragen van de naam van je USB stick. De naam van je USB stick kun je gebruiken in het sudo commando van Apple om een USB installer te maken. Stap 1: Open de Terminal applicatie Stap 2: Ga naar je home directory, type: # cd Stap 3: Maak eventueel een directory scripts, type: # mkdir scripts Stap 4: Ga naar de zojuist gemaakte scripts directory, type: # cd scripts

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

1 minuut leestijd

Boot into the Windows installer On the first screen press SHIFT + F10 # diskpart # list disk # select disk 0 # list part Look for the Windows partition # select part 3 # assign letter=W # format quick fs=NTFS # list volume Look for the EFI volume # select volume 2 # assign letter=Z # exit # D: Goto the USB installer of Windows # cd D:\sources # dir install* The file install.

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

1 minuut leestijd

# hdiutil convert /path/to/refit-0.14.cdr -format UDRW -o /path/to/refit-0.14.img # diskutil list # diskutil unmountDisk /dev/disk2 # sudo dd if=/path/to/refit-0.14.img.dmg of=/dev/rdisk2 bs=1m Using rdisk2 here seems to speed up things # diskutil eject /dev/disk2

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

1 minuut leestijd

Follow the steps below to install rEFIt to the EFI partition of an iMac Download rEFIt and copy the efi folder to the /efi folder as explained below Before you do the bless command disable the SIP Boot in recovery mode # csrutil status # csrutil disable # reboot sudo mkdir /efi sudo mount -t msdos /dev/disk0s1 /efi sudo bless --mount /efi --setBoot --file /efi/EFI/refit/refit.efi --labelfile /efi/EFI/refit/refit.vollabel

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

1 minuut leestijd

To make a script to run remote commands in a client server network. import subprocess def ssh_exec_command(hostname, username, command): ssh_cmd = ['ssh', f'{username}@{hostname}', command] ssh_process = subprocess.Popen( ssh_cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True ) output, error = ssh_process.communicate() if error: print(&quot;Error:&quot;, error) else: print(&quot;Output:&quot;, output) # Replace these with your actual credentials and command...

Recente berichten

Categorieën

Over Mij

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