Skip to content

Instantly share code, notes, and snippets.

View ediiiz's full-sized avatar
👋
Focusing

Ediz Tefenlilioglu ediiiz

👋
Focusing
View GitHub Profile
@ediiiz
ediiiz / extend-raw.sh
Last active September 6, 2024 14:28
The script automates the process of extending a partition within a raw disk image file on a Proxmox server. It uses a combination of tools including qemu-img, losetup, growpart, and resize2fs to achieve this objective. This script also ensures that all required dependencies are installed before starting the resizing process
#!/bin/bash
# Error handling function
error_exit() {
echo "$1" 1>&2
exit 1
}
# Check if the disk image is provided
if [ "$#" -ne 2 ]; then
@ediiiz
ediiiz / cloudflaredConfigManager.sh
Created October 2, 2023 13:37
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…
#!/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,
@ediiiz
ediiiz / EnableDSCforIntelXeGraphics.ps1
Created June 29, 2023 08:13
Enables Display Stream Compression for Intel Iris Xe Graphics
$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