Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mkol5222
mkol5222 / WSL.md
Created September 18, 2025 11:04 — forked from netfantom-spb/WSL.md
WSL

WSL list

Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss" -Recurse

Move WSL to another drive/PC

wsl --export Ubuntu .\Ubuntu\ext4.vhdx --vhd
wsl --unregister Ubuntu
wsl --import-in-place Ubuntu .\Ubuntu\ext4.vhdx
@mkol5222
mkol5222 / README.md
Created September 12, 2025 07:41 — forked from LynnAU/README.md
Azure Container App - Provisioning Managed certificates for custom domains

Azure Container App - Custom Domain Managed Certficate scripts

This gist contains a create and destroy script to provision and cleanup custom domains and managed certficates assigned to Azure Container Apps.

This gist supports the following workflow:

  • Bind custom domain to existing Container App
  • Provision a managed certificate for the custom domain
  • Bind the managed certificate to the custom domain

🚀 GitHub Copilot Certification Cheat Sheet

📜 Contract Stack

Definition: Clarifies users’ legal terms and obligations.

Key Points:

  • Terms depend on whether Copilot is purchased through GitHub or Microsoft.
  • Includes licensing, data usage, and privacy policies.
  • Important for understanding code suggestions and intellectual property.

Copilot API Calls Example

Telemetry

export ORG=<YOUR-ORG>
  • Get Business seat information and settings for an org
@mkol5222
mkol5222 / ci-image-producer.sh
Created July 13, 2025 18:01 — forked from Rene-Roscher/ci-image-producer.sh
Proxmox Cloud-Init / Image Pre-Configurator
#!/bin/bash
# Farbdefinitionen
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
WHITE='\033[1;37m'
NC='\033[0m' # Keine Farbe
@mkol5222
mkol5222 / proxmox_template_builder.sh
Created July 13, 2025 18:00 — forked from Hackiri/proxmox_template_builder.sh
create cloud init template proxmox
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
# Function to check for required utilities
function check_utilities() {
local utilities=("qm" "wget" "xz" "sha256sum" "ssh-keygen")
for util in "${utilities[@]}"; do
command -v "$util" >/dev/null 2>&1 || { echo "$util not found. Please install it."; exit 1; }
@mkol5222
mkol5222 / proxmox-cloudinit.md
Created July 13, 2025 17:59 — forked from adiberr/proxmox-cloudinit.md
Proxmox Template with Cloud Image and Cloud Init
@mkol5222
mkol5222 / distribute.sh
Created June 27, 2025 11:30 — forked from joe-at-cp/distribute.sh
File Distribute Script For Check Point Management Servers
#!/bin/bash
#distribute.sh
#Joe Dillig - Check Point Software 2019 - dilligj@checkpoint.com
#Script used to distrubute custom dynamic object tracking scripts to managed gateways from the Check Point management server
#Location to transfer files to on each gateway
REMOTE_SCRIPT_DIR="/home/admin/scripts/dynobjs"
#List of files to distribute
@mkol5222
mkol5222 / gist:cb1587dd6f89e3a734848c890d3f5517
Created June 6, 2025 18:38 — forked from joe-at-cp/gist:ec810eedc7e059605575ce9e03ee8881
Azure Custom-Data - Check Point Management - Basic Autoreg Setup
#!/bin/bash
GUI_USER="admin"
GUI_PASS="vpn123"
API_USER="api_user"
API_PASS="vpn123"
config_system -s "install_security_gw=false&install_ppak=false&gateway_cluster_member=false&install_security_managment=true&install_mgmt_primary=true&install mgmt_secondary=false&mgmt_admin_name=$GUI_USER&mgmt_admin_passwd=$GUI_PASS&mgmt_gui_clients_radio=any"
while true;
do