Skip to content

Instantly share code, notes, and snippets.

View dirien's full-sized avatar
🧿
YAML Engineer

Engin Diri dirien

🧿
YAML Engineer
View GitHub Profile
objects = [MyObject.new(name: "John Smith"), MyObject.new(name: "Joan Smith"), MyObject.new(name: "Jane Doe")]
objects.select {|o| o.name["Smith"]}.each do |o|
o.name.gsub!("Smith", "Jones")
o.save
end
@halvards
halvards / krm-fns.yaml
Created February 21, 2022 12:14
Example of using Kustomize with Helm and Digester
apiVersion: example.com/v1
kind: DigesterFunction
metadata:
name: digester
annotations:
config.kubernetes.io/function: |
exec:
path: ./digester
@LucasRoesler
LucasRoesler / README.md
Last active February 21, 2024 22:59
Example cloudformation that sets up an s3 bucket and notifications sent to an sqs queue.

Usage

Create a new user in the console, assign it no permissions, but make sure to download the credentials.

Go to the user and copy the user ARN:

arn:aws:iam::<account-id>:user/of-connector-test
@solidnerd
solidnerd / convert-ingress.sh
Last active December 10, 2021 05:53
Helper script to convert multiple ingress
#!/bin/bash
set -e
set -o pipefail
# kubectl convert is a plugin or binary that can be used
# can be fetched from https://www.downloadkubernetes.com/
#
KUBECTL_CONVERT_BIN=$HOME/Downloads/kubectl-convert
mkdir -p {pre,converted}
@csantanapr
csantanapr / install-knative-operator.sh
Last active December 16, 2021 23:38
Install Knative using Operator
#!/usr/bin/env bash
set -eo pipefail
set -u
## INSTALL OPERATOR (is install in default namespace, to use another namespace need to modify the yaml)
n=0
until [ $n -ge 3 ]; do
kubectl apply -f https://storage.googleapis.com/knative-nightly/operator/latest/operator.yaml > /dev/null && break
echo "Kourier failed to install on first try"
@bamnet
bamnet / .gitlab-ci.yml
Last active January 11, 2023 06:16
Multiarch Go Builds
image: docker:latest
services:
- docker:dind
stages:
- build
variables:
IMAGE: registry.gitlab.com/bamnet/njtdata
DOCKER_CLI_EXPERIMENTAL: enabled
@ramnathv
ramnathv / gh-pages.md
Created March 28, 2012 15:37
Creating a clean gh-pages branch

Creating a clean gh-pages branch

This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]

cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" &gt; index.html