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):
@aojea
aojea / README.md
Last active November 12, 2024 09:44
upgrade kind kubernetes cluster
@seblegall
seblegall / reverseproxy.go
Last active November 10, 2024 08:08
A reverse proxy in Golang using Gin
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"github.com/gin-gonic/gin"
)