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 / archivista.md
Last active November 13, 2025 19:17
Archivista is a graph and storage service for in-toto attestations.

Archivista CLI

  1. How to store the in-toto attestation to Archivista
// stores an attestation on the archivista server

$ archivistactl store <attestation.json>
$ archivistactl store build.attestation.json

build.attestation.json stored with gitoid 4462a729251af54c7699dbca2f7d5bf5759a5fc6273b3cd606da29d531387c86
@manzil-infinity180
manzil-infinity180 / crypto.py
Created September 10, 2025 16:46 — forked from NeilMadden/crypto.py
A Lazy Developer’s Guide to Modern Cryptography
#!/usr/bin/env python3
# Copyright 2024 Neil Madden.
# License: https://creativecommons.org/licenses/by-sa/4.0/deed.en.
# Like this? I do training courses & consultancy:
# https://illuminated-security.com/
import hashlib
import math
import os
@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 August 18, 2025 19:01
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