This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Error handling function | |
error_exit() { | |
echo "$1" 1>&2 | |
exit 1 | |
} | |
# Check if the disk image is provided | |
if [ "$#" -ne 2 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Cloudflared Config Manager (CCM) | |
# | |
# Description: | |
# The Cloudflared Config Manager (CCM) is an interactive shell script designed | |
# to simplify the management of `cloudflared` configurations and tunnels. | |
# Through a user-friendly menu-driven interface, CCM offers functionality such | |
# as adding new ingress rules, editing the configuration file directly, managing | |
# DNS routes, and handling `cloudflared` tunnels. By providing validation, backup, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$deviceName = "Intel(R) Iris(R) Xe Graphics" | |
function Get-DriverKey { | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$DeviceName | |
) | |
$driverKey = Get-CimInstance -Namespace root/cimv2 -ClassName Win32_PNPEntity | Where-Object { $_.Description -like $DeviceName } | Select-Object -ExpandProperty ClassGuid |