Skip to content

Instantly share code, notes, and snippets.

View khorsmann's full-sized avatar

Karsten Horsmann khorsmann

  • Germany / Hanover
View GitHub Profile
@khorsmann
khorsmann / check_uac.py
Created December 2, 2022 09:30
kamailio uac module state checker for nagios or check_mk
#!/bin/env python3
import sys
import shlex
import json
from subprocess import Popen
from subprocess import PIPE
get_pid = shlex.split("pgrep -c [k]amailio")
uac_cmd = shlex.split("/usr/sbin/kamctl rpc uac.reg_dump")
check_name = "uac_reg_"
@khorsmann
khorsmann / WSLWindows10Setup.md
Last active March 27, 2024 08:07 — forked from AjkayAlan/WSLWindows10Setup.md
Windows SubSystem For Linux setup that I like with some developers stuff mixed in

Setting Up WSL

Install A Distro:

  1. Run the following in powershell as admin Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  2. Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)

  3. Open your distro you installed via the start menu, let it setup

  4. Update and upgrade

sudo apt-get update
@khorsmann
khorsmann / wsl2 installation dnsmasq.md
Last active March 27, 2024 08:22
wsl2 installation dnsmasq.md

Copy from https://raw.githubusercontent.com/absolunet/pleaz/production/documentation/installation/wsl2/dnsmasq.md

Installation for WSL 2 - dnsmasq

Documentation > Installation for WSL 2 > dnsmasq

dnsmasq is free software providing Domain Name System (DNS) caching, a Dynamic Host Configuration Protocol (DHCP) server, router advertisement and network boot features, intended for small computer networks.

Table of Contents

  1. Add DNS servers on the WSL network adapter
  2. Configure the dnsmasq service on WSL 2 Ubuntu