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

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 / 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 / restclient.go
Created March 10, 2025 17:55 — forked from manuelmazzuola/restclient.go
how to implement a RESTClientGetter for helm action pkg
package main
import (
"k8s.io/apimachinery/pkg/api/meta"
"k8s.io/client-go/discovery"
"k8s.io/client-go/discovery/cached/memory"
"k8s.io/client-go/rest"
"k8s.io/client-go/restmapper"
"k8s.io/client-go/tools/clientcmd"
"k8s.io/client-go/tools/clientcmd/api"
@manzil-infinity180
manzil-infinity180 / webrtc.rst
Created October 21, 2024 17:03 — forked from voluntas/webrtc.rst
WebRTC コトハジメ