Skip to content

Instantly share code, notes, and snippets.

🎧
Give me a soft subtle mix, and if ain't broke then don't try to fix it

Brandon B. Jozsa v1k0d3n

🎧
Give me a soft subtle mix, and if ain't broke then don't try to fix it
Block or report user

Report or block v1k0d3n

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@v1k0d3n
v1k0d3n / coredns-testing.md
Created Sep 8, 2019
Local CoreDNS setup. For production we used CoreDNS extensions for proxy/forwarding to Route53, but this was used to test a local CoreDNS instance + etcd SRV auto-discovery for local platform development.
View coredns-testing.md

CoreDNS Proposal

Proof of Concept

#!/bin/bash
## Prepare any variables used for this script:
export network_endpoints_dns_coredir="$(pwd)/scripts/deployments/coredns"
export network_endpoints_dns_fqdn="jinkit.com"
@v1k0d3n
v1k0d3n / calico-os-v3-7-2.yaml
Created Jul 13, 2019
Calico Manifests for Kata Installations
View calico-os-v3-7-2.yaml
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# You must set a non-zero value for Typha replicas below.
@v1k0d3n
v1k0d3n / README.md
Last active Jul 10, 2019
A list of helpful parsing commands that include: kubernetes, aws, jq, yq and other fine tools. Comment to add your favorite useful commands. Please be kind and source any commands found elsewhere when possible.
View README.md

Data Crunching

The following is a guide for many useful commands that can be used when parsing, replacing, patching various platforms, etc.

Cloud Providers

AWS

Management

@v1k0d3n
v1k0d3n / README.md
Created Apr 27, 2019 — forked from ralfr/README.md
Applescript to launch iTerm2 Version 3+ from OS X Finder via keyboard shortcut or Toolbar
View README.md

Description

Based on info from http://peterdowns.com/posts/open-iterm-finder-service.html but with modified behavior and fixed to work with iTerm2 version 3 or later. It will not work with older versions of iTerm. The modified behavior is to open a new terminal window for each invocation instead of reusing an already open window. Update - The original author released a build script for the newer iTerm2 versions at https://github.com/peterldowns/iterm2-finder-tools that keeps the original behavior of reusing an open iTerm2 window.

To open iTerm2 at selected folder with keyboard shortcut

  1. Run Automator, select a new Service
  2. Select Utilities -> Run AppleScript
  3. Service receives selected 'folders' in 'finder.app'
  4. Paste script:
@v1k0d3n
v1k0d3n / install.sh
Last active Apr 30, 2019
Install kubeadm in self-hosted mode
View install.sh
# System preparation
## Update system:
sudo apt-get update && sudo apt-get dist-upgrade -y
## Prepare for Docker-CE install:
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
@v1k0d3n
v1k0d3n / fedora-atomic-host.md
Created Mar 11, 2018 — forked from jasonbrooks/fedora-atomic-host.md
running kubernetes on fedora atomic host
View fedora-atomic-host.md

kubernetes all in one

grab an atomic host

$ vagrant init fedora/25-atomic-host
$ vagrant up
$ vagrant ssh
@v1k0d3n
v1k0d3n / README.md
Created Mar 7, 2018 — forked from mowings/README.md
Set up xhyve with Ubuntu 16.04
View README.md

Introduction

Setting up an OS to work with xhyve can be a bit tricky, but it's not impossible. These intructions should be generally applicable to most versions of Linux.

Create a disk image file

Xhyve will use a file as a logical disk. Be sure you have the filesize you need, because growing the file later is tricky to impossible (you could try to use qcow or similar to get around this, but qcow volumes can be tricky to mount).

dd if=/dev/zero of=hdd.img bs=1g count=32 # Create a 32 gig disk. Raise 'count' as desired
View keybase.md

Keybase proof

I hereby claim:

  • I am v1k0d3n on github.
  • I am v1k0d3n (https://keybase.io/v1k0d3n) on keybase.
  • I have a public key ASBYzkbUstXG0bQCGbDF2CduJpn_Y3vLXGNtg41o7m7VzQo

To claim this, I am signing this object:

@v1k0d3n
v1k0d3n / calico-2.6.1-v1.7.5.yaml
Created Oct 8, 2017
calico-2.6.1-v1.7.5.yaml
View calico-2.6.1-v1.7.5.yaml
# Calico Version v2.6.1
# https://docs.projectcalico.org/v2.6/releases#v2.6.1
# This manifest includes the following component versions:
# calico/node:v2.6.1
# calico/cni:v1.11.0
# calico/kube-controllers:v1.0.0
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
View auto-bootkube.sh
wget https://gist.githubusercontent.com/v1k0d3n/a38cc3febb53819e074dc322b9473f2f/raw/7234224ba34fd2891a29cbe544637d23f931db89/bootkube-clean.sh
wget https://gist.githubusercontent.com/v1k0d3n/a38cc3febb53819e074dc322b9473f2f/raw/057243cf033f44ce4b4a053d341c5b1723eabcab/bootkube-up.sh
chmod +x bootkube-*
./bootkube-up.sh
You can’t perform that action at this time.