Skip to content

Instantly share code, notes, and snippets.

View laureen71's full-sized avatar

Roland Zagler laureen71

View GitHub Profile
@laureen71
laureen71 / kswitch.sh
Created May 27, 2022 10:03
kubectl context switcher
#!/bin/bash
IFS=$'\n' clusters=($(kubectl config get-contexts --no-headers | awk '{print $2}'))
active_cluster=$(kubectl config current-context)
for i in ${!clusters[@]};
do
:
if [ "${clusters[$i]}" == $active_cluster ]; then
echo -e "\e[33m[*] \e[36m"${clusters[$i]}
@laureen71
laureen71 / nginx.conf RTMP Server
Last active December 10, 2024 02:35
TLS encapsulation RTMP Traffic (RTMPS) with nginx stream module
load_module modules/ngx_rtmp_module.so;
...
rtmp {
server {
listen 0.0.0.0:1935;
# if you want to run all on one server, change port here, eg:
# listen 127.0.0.1:1936;
chunk_size 4000;
notify_method get;
interleave on;