Skip to content

Instantly share code, notes, and snippets.


Walid Shouman weshouman

  • Stuttgart, Germany
View GitHub Profile

Parse the kubernetes manifest in yaml or json, don't care a manifest type.


package main

import (
EPiC-Inc /
Last active July 11, 2022 12:24
Python get output from PowerShell command
import subprocess
from subprocess import PIPE
from threading import Thread
from queue import Queue, Empty
from Queue import Queue, Empty
# This creates a queue object and a function to put properly formatted stuff in it
q = Queue()
zeffy / VS16NoTelem.bat
Last active December 12, 2022 13:19
Disable telemetry in Visual Studio 2019
View VS16NoTelem.bat
@echo off
fltmc >nul 2>&1 || (
echo This batch script requires administrator privileges. Right-click on
echo the script and select "Run as administrator".
goto :die
rem Change this path if you are using Community or Professional editions
set "VS_INSTALL_DIR=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise"
View install-consolas-ubuntu
wget -O /tmp/
unzip /tmp/
sudo mkdir -p /usr/share/fonts/consolas
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf
cd /usr/share/fonts/consolas
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
miguelmota / notes.txt
Last active February 2, 2023 15:56
runc vs gvisor (runsc) vs rkt vs KataContainers vs NablaContainers
View notes.txt
knowledge dump on container runtimes
- image coupled with kernel
- light vm layer
- can run in nested virturalization environments if hardware supports and you can enable it in bios (ex. only bare metal EC2 instances, limits many cloud providers)
- slower startup time
- OCI compliant
- previously known as ClearContainers by Intel
tsaarni /
Last active June 9, 2021 18:58
How to connect to Azure AKS Kubernetes node VM by SSH

How to connect to Azure AKS Kubernetes worker node by SSH

Nodes are not assigned public IP. If you have accessible VM in the same VNET as worker nodes, then you can use that VM as jump host and connect the worker via private IP.

Alternatively public IP can be assigned to a worker node. This readme shows how to do that.

Steps how to attach public IP to a worker node

find out the resource group that AKS created for the node VMs

coco98 / kube-registry.yaml
Created May 2, 2017 16:31
Docker registry on minikube
View kube-registry.yaml
apiVersion: v1
kind: ReplicationController
name: kube-registry-v0
namespace: kube-system
k8s-app: kube-registry
version: v0
replicas: 1
reachlin / prometheus.yml
Created April 19, 2017 07:06
sample prometheus configuration explained
View prometheus.yml
// For all the confusing Prometheus configuration and
// regular expressions,
// explained in examples.
// Remember, there are default values for each item if it's missing.
// regex is (.*),
// replacement is $1,
// separator is ;
// ,and action is replace
vlasenkov /
Last active September 27, 2022 07:01
win32com multithreading example (python 2)
# win32com multithreading example
import sys
import time
from threading import Thread
sys.coinit_flags = 0  # pythoncom.COINIT_MULTITHREADED == 0
from pythoncom import (CoInitializeEx, CoUninitialize,
                       COINIT_MULTITHREADED, PumpWaitingMessages)
from win32com.client import Dispatch, WithEvents