Skip to content

Instantly share code, notes, and snippets.

View peteroneilljr's full-sized avatar
💭
Let's Teleport

Peter ONeill peteroneilljr

💭
Let's Teleport
View GitHub Profile
@ankurk91
ankurk91 / git_remember_password.md
Last active October 8, 2024 06:46
Git credential cache, why type password again and again

Tired of entering passwords again and again ?

Run this command to remember your password:

git config --global credential.helper 'cache --timeout 28800'

Above command will tell git to cache your password for 8 hours.

@zupzup
zupzup / main.go
Created July 14, 2017 12:46
Example for Basic AST Traversal in Go
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/printer"
"go/token"
"log"
"os"
##########################################
# Gatekeeper #
# Open Policy Agent (OPA) For Kubernetes #
# https://youtu.be/14lGc7xMAe4 #
##########################################
# Referenced videos:
# - How to run local multi-node Kubernetes clusters using kind: https://youtu.be/C0v5gJSWuSo
# - Kustomize - How to Simplify Kubernetes Configuration Management: https://youtu.be/Twtbg6LFnAg
@anderseknert
anderseknert / resourcetypes.py
Last active April 2, 2022 19:59
Crawling AWS docs for all CloudFormation resource types. Python vs. Rego!
#!/usr/bin/env python3
import requests
def main():
base = "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide"
resp = requests.get(f"{base}/toc-contents.json")
body = resp.json()
# Source: https://gist.github.com/vfarcic/78c1d2a87baf31512b87a2254194b11c
###############################################################
# How To Create A Complete Internal Developer Platform (IDP)? #
# https://youtu.be/Rg98GoEHBd4 #
###############################################################
# Additional Info:
# - DevOps MUST Build Internal Developer Platform (IDP): https://youtu.be/j5i00z3QXyU
# - How To Create A "Proper" CLI With Shell And Charm Gum: https://youtu.be/U8zCHA-9VLA