Skip to content

Instantly share code, notes, and snippets.

View manzil-infinity180's full-sized avatar
🎯
Focusing

Rahul Vishwakarma manzil-infinity180

🎯
Focusing
View GitHub Profile
@manzil-infinity180
manzil-infinity180 / demo.md
Created April 30, 2025 14:30
Slack Webhook Message Code in Golang
Screenshot 2025-04-30 at 7 59 50 PM
import ffmpeg
# Basic Usage (Convert Video Format)
"""
(
ffmpeg.input("src/rahulxf.mov")
.output("output.mp4")
.run()
)
"""

Host an APT repository on Github

This guide will help you host an APT repository on Github.

Prerequisites

You need to install the following packages.

  • reprepro
@manzil-infinity180
manzil-infinity180 / docker-clean-up.md
Last active May 19, 2025 08:37
Clean your Mac System Data - My Docker takes near 1TB space
$ docker system df                
TYPE            TOTAL     ACTIVE    SIZE      RECLAIMABLE
Images          0         0         0B        0B
Containers      0         0         0B        0B
Local Volumes   13        0         31.52GB   31.52GB (100%)
Build Cache     0         0         0B        0B
List All Volumes:
@manzil-infinity180
manzil-infinity180 / cluster-detect.go
Created May 19, 2025 06:43
How to detect which type of cluster are you using (kind, k3d)
package main
import (
"context"
"fmt"
"os"
"strings"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"
@manzil-infinity180
manzil-infinity180 / file.md
Created May 20, 2025 17:43
kubestellar-delete-step-one-things
kubectl config delete-cluster wds1-cluster
kubectl config delete-cluster its1-cluster
kubectl config delete-cluster k3d-cluster1
kubectl config delete-cluster k3d-cluster2
kubectl config delete-cluster k3d-kubeflex

kubectl config delete-context wds1
kubectl config delete-context its1
kubectl config delete-context cluster1