Skip to content

Instantly share code, notes, and snippets.

View miladhzzzz's full-sized avatar

Milad Hosseini miladhzzzz

View GitHub Profile
@miladhzzzz
miladhzzzz / README.md
Last active May 25, 2023 20:38
Golang Boilerplate code generator

go boilerplate project generator

this script will create the following tree:

.
├── cmd
│   └── main.go
├── config
│   └── config.go
├── config.toml
├── Dockerfile
@tafaust
tafaust / application.py
Created April 21, 2022 19:41
FastAPI singleton service dependency injection across multiple requests
import random
import click
import uvicorn
from fastapi import FastAPI, APIRouter, Depends, Request
# Service
class MySingletonService:
def __init__(self):
@abn
abn / jigsaw-outline-uninstall.sh
Last active August 26, 2025 16:55
Jigsaw Outline: Uninstall (purge) the persistent thing
#!/usr/bin/env bash
# this is not extensively tested, worked for personal use case.
# script is intentionally aggressive, use at your own peril :)
# reference: https://github.com/Jigsaw-Code/outline-client/issues/648
function uninstall-outline() {
set -x
sudo systemctl disable --now outline_proxy_controller
@aojea
aojea / README.md
Last active September 21, 2025 12:04
upgrade kind kubernetes cluster
@seblegall
seblegall / reverseproxy.go
Last active October 16, 2025 06:16
A reverse proxy in Golang using Gin
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"github.com/gin-gonic/gin"
)