Skip to content

Instantly share code, notes, and snippets.

View o6uoq's full-sized avatar

David Dolph o6uoq

View GitHub Profile
@mauvehed
mauvehed / enable_to_sudo_authenticate_with_touch_id.sh
Last active January 27, 2023 23:35
Enable sudo auth for macOS touchID via pam
#!/bin/bash
#
# credit to machupicchubeta/dotfiles/bin/enable_to_sudo_authenticate_with_touch_id.sh
set -eu
set -o pipefail
sudo chmod +w /etc/pam.d/sudo
if ! grep -Eq '^auth\s.*\spam_tid\.so$' /etc/pam.d/sudo; then
( set -e; set -o pipefail
# Add "pam_tid.so" to a first authentication
@scottrigby
scottrigby / readme.md
Last active February 3, 2023 20:12
Introduction to GitOps & The Flux Family of Projects

Introduction to GitOps & The Flux Family of Projects

Set up local cluster and Flux CLI

  1. Install Flux CLI and Kind:

    $ brew reinstall flux kind
    $ kind --version
    kind version 0.11.1
@scottrigby
scottrigby / hands-on-gitops-patterns-for-helm-users.md
Last active December 27, 2022 18:12
Hands-On GitOps Patterns for Helm Users

Hands-On GitOps Patterns for Helm Users

  1. Install Flux CLI and Kind:

    $ brew reinstall flux kind
    $ kind --version
    kind version 0.10.0
    $ flux --version
    flux version 0.9.1
@diafour
diafour / cluster-19.sh
Last active March 27, 2024 10:00
Run kind cluster with access to local registry
#!/usr/bin/env bash
# A helper for kind to create and delete clusters with untrusted local registry.
# Based on https://kind.sigs.k8s.io/docs/user/local-registry/
#
# Note: kind 0.10.0
# Settings for kind cluster
CLUSTER_NAME="kube-19"
KIND_NODE_IMAGE="kindest/node:v1.19.7"
@AlainODea
AlainODea / main.tf
Last active August 22, 2022 14:17
Terraform: Latest Ubuntu 18.04 LTS encrypted AMI
resource "aws_ami_copy" "ubuntu-18_04-encrypted" {
name = "${data.aws_ami.ubuntu-18_04.name}-encrypted"
description = "${data.aws_ami.ubuntu-18_04.description} (encrypted)"
source_ami_id = "${data.aws_ami.ubuntu-18_04.id}"
source_ami_region = "${var.region}"
encrypted = true
tags {
ImageType = "encrypted-ubuntu-18_04"
}
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 4, 2024 05:06
set -e, -u, -o, -x pipefail explanation
@vasanthk
vasanthk / System Design.md
Last active May 5, 2024 00:11
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@zenorocha
zenorocha / README.md
Last active April 6, 2024 16:59
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage