Skip to content

Instantly share code, notes, and snippets.

View NewJerseyStyle's full-sized avatar

David H. NewJerseyStyle

View GitHub Profile
@NewJerseyStyle
NewJerseyStyle / polis_api_template.py
Created February 21, 2025 00:39
FastAPI based polis compatible API spec in Python (draft)
from typing import Optional, List, Dict, Union
from fastapi import FastAPI, Query, Header, Cookie, Depends, HTTPException, status
from fastapi.responses import JSONResponse
from pydantic import BaseModel, validator
import re # For email validation
app = FastAPI()
# --- Helper Functions (Simplified for demonstration) ---
# Replace these with your actual helper function implementations
@mwufi
mwufi / install_docker_in_colab.sh
Last active May 5, 2025 12:33
Install Docker in Google Colab!
# First let's update all the packages to the latest ones with the following command
sudo apt update -qq
# Now we want to install some prerequisite packages which will let us use HTTPS over apt
sudo apt install apt-transport-https ca-certificates curl software-properties-common -qq
# After that we will add the GPG key for the official Docker repository to the system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# We will add the Docker repository to our APT sources
@dcasati
dcasati / export-kubeconfig-from-aks
Created February 6, 2018 15:30
Export KUBECONFIG from AKS
az aks get-credentials --resource-group k8s-demo-ss --name k8s-demo-cluster-ss --file kubeconfig-ss