this script will create the following tree:
.
├── cmd
│ └── main.go
├── config
│ └── config.go
├── config.toml
├── Dockerfile| import random | |
| import click | |
| import uvicorn | |
| from fastapi import FastAPI, APIRouter, Depends, Request | |
| # Service | |
| class MySingletonService: | |
| def __init__(self): |
| #!/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 |
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "net/http/httputil" | |
| "net/url" | |
| "github.com/gin-gonic/gin" | |
| ) |