Skip to content

Instantly share code, notes, and snippets.

View gen_kube_config.py
import jwt
import yaml
from uuid import uuid4
import datetime
import sys
import json
import tempfile
from os import system
# Generate a kubernetes configuration from a private key
View python-k8s-client.py
import requests
import logging
from urllib.parse import urlparse
from urllib.parse import parse_qs
import json
from os import system
from kubernetes import client, config
#logging.basicConfig(level=logging.DEBUG)
@mlbiam
mlbiam / orchestra-login-central-cluster.yaml
Last active Aug 23, 2020
Add Cluster to Centralized OpenUnison
View orchestra-login-central-cluster.yaml
apiVersion: openunison.tremolo.io/v1
kind: Org
metadata:
name: cluster2
namespace: openunison
spec:
description: "My second cluster"
uuid: 04901973-5f4c-46d9-9e22-55e88e168776
parent: B158BD40-0C1B-11E3-8FFD-0800200C9A66
showInPortal: true
View HeaderAuthenticate.php
<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
require_once('modules/Users/authentication/SugarAuthenticate/SugarAuthenticate.php');
class HeaderAuthenticate extends SugarAuthenticate
{
@mlbiam
mlbiam / bsidesdctraining.md
Last active Oct 19, 2020
BSidesDC Training
@mlbiam
mlbiam / steps.md
Last active Jul 29, 2019
orchestra-to-aks.md
View steps.md
View gist:858a32d0ecc4bc2c520f695d41989440
#!/bin/python
import boto3
import sys
out_to = open(sys.argv[2],"w")
client = boto3.client('ssm')
response = client.get_parameters_by_path(Path=sys.argv[1],Recursive=True,WithDecryption=True)
View keybase.md

Keybase proof

I hereby claim:

  • I am mlbiam on github.
  • I am mlbiam (https://keybase.io/mlbiam) on keybase.
  • I have a public key ASDXoMp87KwJItI-xBDR-U4pYBhvjWYF6Qz9teWx_3A3GQo

To claim this, I am signing this object: