Skip to content

Instantly share code, notes, and snippets.

@mkol5222
mkol5222 / mitmproxy.md
Created June 12, 2026 22:45 — forked from ndom91/mitmproxy.md
How to use a MITM Proxy with any node app

mitmproxy

How-to man-in-the-middle your own application's traffic for debugging. Below is a quick step-by-step guide to putting mitmproxy between your hard-to-debug application's HTTP(s) network traffic and its destinations. Allowing you to spy on all requests, as well as modify and replay them. Theres a nice blog post with more screenshots and some explanation behind mitm-ing available here: https://earthly.dev/blog/mitmproxy/

1. Install dependencies

  1. global-agent - Global node proxy configuration via environment variables (npm) Optional - only necessary for proxying local node scripts/apps that don't have an explicit proxy option. a. $ npm i -g global-agent
  2. mitmproxy - Popular opensource python man-in-the-middle proxy with web interface (homepage)
@mkol5222
mkol5222 / pi-setup-guide.md
Created June 12, 2026 22:15 — forked from schpet/pi-setup-guide.md
Pi Coding Agent Setup Guide

Pi Coding Agent Setup Guide

1. Install the Agent

npm install -g @mariozechner/pi-coding-agent

2. Launching Pi

# Interactive REPL
import contextlib
import ctypes
import ctypes.wintypes
import io
import json
import os
import re
import socket
import socketserver
import threading
@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