Skip to content

Instantly share code, notes, and snippets.

View asad-albadi's full-sized avatar

Asàd Al-Badi asad-albadi

View GitHub Profile
@asad-albadi
asad-albadi / Comparing Rust with Quarkus
Created August 12, 2024 01:31
Comprehensive comparison table regarding Rust, Python (with FastAPI), Dart, and Java (with Quarkus)
Comprehensive comparison table regarding Rust, Python (with FastAPI), Dart, and Java (with Quarkus):
| **Feature/Aspect** | **Rust** | **Python (with FastAPI)** | **Dart** | **Java (with Quarkus)** |
|---------------------------------|-----------------------------------------------|---------------------------------------------------|-------------------------------------------------|-----------------------------------------------------|
| **Performance** | High (comparable to C/C++) | Moderate (due to interpreted nature) | Moderate to High (with AOT compilation) | High (with JVM optimizations and native compilation) |
| **Memory Safety** | Strong (no garbage collection, ownership) | Weak (relies on garbage collection) | Moderate (garbage collection) | Moderate (garb

Comprehensive Engineering Formulas and Algorithms

Mechanical Engineering

Thermodynamics

  • First Law of Thermodynamics (Energy Conservation): [ \Delta U = Q - W ]
  • Inputs: ( Q ) (Heat added to the system in J), ( W ) (Work done by the system in J)

Auto-Mounting an SMB Share on Debian

This guide provides steps to auto-mount an SMB share on Debian using a systemd mount unit and NetworkManager-wait-online.service.

Prerequisites

Ensure cifs-utils is installed:

sudo apt update
sudo apt install cifs-utils

Setting Up Scrutiny Collector Metrics on Windows

Step 1: Create the collector.yaml File

  1. Open PowerShell:

    • Press Win + X and select "Windows PowerShell" or "Windows PowerShell (Admin)".
  2. Navigate to the Desired Directory:

    cd C:\opt\scrutiny\config

Privacy Policy

Astral Hive Solutions built the AstralCalc app as a commercial app. This SERVICE is provided by Astral Hive Solutions and is intended for use as is.

Information Collection and Use

We do not collect, use, save, or have access to any of your personal data recorded in AstralCalc. The app does not collect user data.

Log Data

MJPG Streamer Installation and Setup Guide

Step 1: Install Required Dependencies

Update your package lists:

sudo apt update

Install necessary dependencies:

Hardware Overview

Device Processor RAM Storage Graphics Additional Specs
Raspberry Pi 4 Model B Broadcom BCM2711, Quad-core Cortex-A72 @ 1.5GHz 4GB LPDDR4-3200 MicroSD card slot Broadcom VideoCore VI Dual-band Wi-Fi, Bluetooth 5.0, Gigabit Ethernet, 4 USB ports, 2 micro-HDMI ports
Raspberry Pi 5 Broadcom BCM2712, Quad-core Cortex-A76 @ 2.4GHz 8GB LPDDR4X-4267 MicroSD card slot (high-speed SDR104) VideoCore VII Dual-band Wi-Fi, Bluetooth 5.0 / BLE

NFS Share Auto-Mount Guide on Boot

This guide details the steps to ensure an NFS share mounts automatically at boot on a Linux system, incorporating troubleshooting tips and a custom systemd service for reliability.

Prerequisites

  • NFS client utilities installed on your system.
  • Access to edit system configuration files with root permissions.

Step 1: Install NFS Client Utilities

Homelab Overview

HomeLab Checklist

Electronics Lab Inventory

Device Processor RAM Storage Graphics Additional Specs
Raspberry Pi 4 Model B Broadcom BCM2711, Quad-core Cortex-A72 @ 1.5GHz 4GB LPDDR4-3200 MicroSD card slot Broadcom VideoCore VI Dual-band Wi-Fi, Bluetooth 5.0, Gigabit Ethernet, 4 USB ports, 2 micro-HDMI ports
Raspberry

CPU Comparison (Speculative)

Feature Intel Core i7 8700K AMD Ryzen 9 7950X Intel Core i9-14900K Next-Gen AMD Ryzen (9000 Series) Next-Gen Intel Core (15th Gen)
Architecture Coffee Lake (14nm) Zen 4 (5nm) Raptor Lake (Intel 7) Zen 5 (expected) Intel 7 / Intel 4 (expected)
Cores/Threads 6 Cores / 12 Threads 16 Cores / 32 Threads 24 Cores (8P+16E) / 32 Threads 16+ Cores (expected) 24+ Cores (expected)
Base/Boost Clock 3.7 GHz / 4.7 GHz 4.5 GHz / 5.7 GHz Up to 5.8 GHz Higher than previous gen (expected) Higher than previous gen (expected)
L3 Cache 12M