Skip to content

Instantly share code, notes, and snippets.

View weshouman's full-sized avatar

Walid Shouman weshouman

  • Stuttgart, Germany
View GitHub Profile
View client-go-parse-yaml.md

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

Examples:

package main

import (
	"bytes"
	"context"
@EPiC-Inc
EPiC-Inc / super_awesome.py
Last active July 11, 2022 12:24
Python get output from PowerShell command
View super_awesome.py
import subprocess
from subprocess import PIPE
from threading import Thread
try:
from queue import Queue, Empty
except:
from Queue import Queue, Empty
# This creates a queue object and a function to put properly formatted stuff in it
q = Queue()
View install-consolas-ubuntu
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip
unzip /tmp/YaHei.Consolas.1.12.zip
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
miguelmota / notes.txt
Last active July 25, 2023 05:11
runc vs gvisor (runsc) vs rkt vs KataContainers vs NablaContainers
View notes.txt
knowledge dump on container runtimes
KataContainers
- 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
tsaarni / README.md
Last active June 9, 2021 18:58
How to connect to Azure AKS Kubernetes node VM by SSH
View README.md

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
coco98 / kube-registry.yaml
Created May 2, 2017 16:31
Docker registry on minikube
View kube-registry.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1
@reachlin
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
vlasenkov / pycom.py
Last active September 27, 2022 07:01
win32com multithreading example (python 2)
View pycom.py
# 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
 
@ivanskodje
ivanskodje / youtube-dl-download-pluralsight-videos.md
Last active October 1, 2023 07:47
youtube-dl for downloading pluralsight videos
View youtube-dl-download-pluralsight-videos.md

Downloading Videos from Pluralsight

Disclaimer

Pluralsight do not permit users to download their videos.
If you are an user of pluralsight you have agreed with their ToS,
and are thusly refrained from doing so.
Use this knowledge at your own risk.

youtube-dl for Windows