Skip to content

Instantly share code, notes, and snippets.

View gramidt's full-sized avatar
👨‍💻
Building products people love

Granville Schmidt gramidt

👨‍💻
Building products people love
View GitHub Profile
@gramidt
gramidt / bobp-python.md
Created August 2, 2018 20:55 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@gramidt
gramidt / build-aad-b2c-combined-policy-jwk.py
Last active November 19, 2018 15:56
Download and combine the Json Web Keys (JWKs) into a single JWK for all of the specified Azure Active Directory B2C (AAD B2C) policies on a tenant.
"""Download and combine Azure Active Directory B2C JWKs.
Download and combine the Json Web Keys (JWKs) into a single JWK for all of the specified Azure Active Directory B2C (AAD B2C) policies on a tenant.
Example:
$python build-aad-b2c-combined-policy-jwk.py --tenant_url https://login.microsoftonline.com/fabrikamb2c.onmicrosoft.com --policies b2c_1_sign_in,b2c_1a_another_policy
"""
import sys
import argparse
@gramidt
gramidt / IAM Permissions List.md
Created February 5, 2019 01:52 — forked from mechcozmo/IAM Permissions List.md
A list of IAM permissions you can use in policy documents. Collected from the myriad of places Amazon hides them. (incomplete)
@gramidt
gramidt / Dockerfile
Last active December 2, 2021 18:56
OpenTelemetry Collector ARM Dockerfile
ARG OTEL_CONTRIB_COLLECTOR_VERSION=v0.23.0
FROM alpine:3.13 as certs
RUN apk --update add ca-certificates
FROM alpine:3.13 AS otelcol
ARG OTEL_CONTRIB_COLLECTOR_VERSION
RUN wget -O /otelcontribcol "https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/download/${OTEL_CONTRIB_COLLECTOR_VERSION}/otelcontribcol_linux_arm64"
RUN chmod 755 /otelcontribcol