Skip to content

Instantly share code, notes, and snippets.

@mkol5222
mkol5222 / readme.md
Created January 2, 2026 15:29 — forked from n8henrie/readme.md
Quick 'n Dirty seatbelt/sandbox

macOS Seatbelt/Sandbox Trace Script

macOS sandbox profiles used to be able to include a trace command that would write all the denied operations to a sandbox profile, allowing a profile to be iterativley built up. Apple removed that functionality for reasons explained below.

trace.sh examines the kernel log for the denied operations and creates the relevant allow rules in a sandbox profile, just like the sandbox profile trace command used to.

shrink.sh tries to reduce a sandbox profile to the minimum lines necessary.

It's very rough and ready at the moment (check the sed regex'es in the script to see what I mean) and needs more testing with a wider set of use cases.

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