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 / 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
@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 / 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:

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
import ffmpeg
# Basic Usage (Convert Video Format)
"""
(
ffmpeg.input("src/rahulxf.mov")
.output("output.mp4")
.run()
)
"""
@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
@manzil-infinity180
manzil-infinity180 / localhost-ssl-certificate.md
Created March 25, 2025 20:43 — forked from ethicka/localhost-ssl-certificate.md
Localhost SSL Certificate on Mac OS

🚨 2020 Update: I recommend using mkcert to generate local certificates. You can do everything below by just running the commands brew install mkcert and mkcert -install. Keep it simple!


This gives you that beautiful green lock in Chrome. I'm assuming you're putting your SSL documents in /etc/ssl, but you can put them anywhere and replace the references in the following commands. Tested successfully on Mac OS Sierra and High Sierra.

Set up localhost.conf

sudo nano /etc/ssl/localhost/localhost.conf

@manzil-infinity180
manzil-infinity180 / helm-crud.go
Last active March 17, 2025 19:45
Install chart using go-sdk
// https://github.com/helm/helm/issues/7310
// https://github.com/helm/helm/issues/12931
// helm 3.0.2 SDK - example of install from remote repository #7310
// https://github.com/helm/helm/issues/12907
// https://github.com/helm/helm-www/pull/1543
import (
"log"
"os"