Skip to content

Instantly share code, notes, and snippets.

@kingdonb
kingdonb / Gemfile
Last active November 5, 2022 20:56 — forked from bf4/Gemfile
Ruby Time and Timezone walkthrough
source "https://rubygems.org"
gem "rack", "~> 1.x"
gem "tzinfo"
gem "webrick"
# Source: https://gist.github.com/0c56f8b8a820198ada44123fa1bf4b60
################################################################
# How To Apply GitOps For Everything Using Crossplane And Flux #
# https://youtu.be/dunU2ABitMA #
################################################################
# Additional Info:
# - eksctl - How to Create and Manage AWS EKS clusters: https://youtu.be/pNECqaxyewQ
# - Flux CD v2 With GitOps Toolkit - Kubernetes Deployment And Sync Mechanism: https://youtu.be/R6OeIgb7lUI
@kingdonb
kingdonb / k3d_local_git.sh
Last active May 23, 2023 21:35 — forked from fragolinux/k3d_local_git.sh
complete setup of a local k3d cluster on macos with flux enabled on local git server
#!/usr/bin/env bash
set -m # enable job control
## change your LAN ip address in the variable "PUBLICIP" before run
## run with "-d" command line switch to debug each step, script will wait for keypress to go on
## integrated mods by KingdonB in his fork: https://gist.github.com/kingdonb/dec74f3b74ffbb83b54d53d5c033e508
## added proper coredns patching via "coredns-custom" configmap
## added automatic /etc/hosts file modification if needed, sudo password will be asked in case
## added (commented out) lines to add Flux extra controllers to the setup
@kingdonb
kingdonb / Gemfile
Created June 10, 2017 10:28 — forked from joemasilotti/Gemfile
How To Test PDFs with Capybara Blog post with details: http://pivotallabs.com/test-pdfs-with-capybara/
group :test do
gem 'rspec-rails'
gem 'capybara'
gem 'pdf-reader'
end
@kingdonb
kingdonb / self-signed-localhost-for-rails.txt
Created September 6, 2016 20:25 — forked from webdevotion/self-signed-localhost-for-rails.txt
SSL self signed localhost for rails start to finish, no red warnings.
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key