Skip to content

Instantly share code, notes, and snippets.

View jamesy0ung's full-sized avatar

James Young jamesy0ung

View GitHub Profile
#include <iostream>
#include <limits>
#include <string>
#include <array>
#include <cmath>
void readInput(const std::string& prompt, double& variable, bool& isKnown) {
std::cout << prompt;
std::string input;
std::getline(std::cin, input);
# Ensure the script is running as Administrator
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Output "Please run this script as an Administrator!"
Exit
}
# Define the registry paths to clean
$graphicsDriversPath = "HKLM:\SYSTEM\CurrentControlSet\Control\GraphicsDrivers"
$subKeys = @("Configuration", "Connectivity", "ScaleFactors")

Chapter 1

  • Exercise 1-1: Run the ``hello, world'' program on your system. Experiment with leaving out parts of the program, to see what error messages you get.
  • Exercise 1-2: Experiment to find out what happens when prints's argument string contains \c, where c is some character not listed above.
  • Exercise 1-3: Modify the temperature conversion program to print a heading above the table.
  • Exercise 1-4: Write a program to print the corresponding Celsius to Fahrenheit table.
  • Exercise 1-5: Modify the temperature conversion program to print the table in reverse order, that is, from 300 degrees to 0.
  • Exercise 1-6: Verify that the expression getchar() != EOF is 0 or 1.
  • Exercise 1-7: Write a program to print the value of EOF.
  • Exercise 1-8: Write a program to count blanks, tabs, and newlines.

Phase 1: Prepare Kernel (Linux aarch64 Build VM)

  1. Download & Extract Kernel:

    wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.85.tar.xz
    tar xvJf linux-6.6.85.tar.xz
    cd linux-6.6.85
  2. Configure & Compile Kernel: