Skip to content

Instantly share code, notes, and snippets.

View infinitydon's full-sized avatar

Christopher Adigun infinitydon

  • United States
View GitHub Profile
@infinitydon
infinitydon / Git: Empty branch.md
Created May 12, 2024 17:52 — forked from blattmann/Git: Empty branch.md
Git: Create empty branch

Replace empty-branch with your desired branch name.

git checkout --orphan empty-branch

Then you can remove all the files you'll have in the staging area (so that they don't get committed):

git rm -rf .

At this point you have an empty branch, on your machine.

@infinitydon
infinitydon / kubernetes_add_service_account_kubeconfig.sh
Created June 8, 2022 19:07 — forked from xtavras/kubernetes_add_service_account_kubeconfig.sh
create kubernetes service account and corresponding kubeconfig
#!/usr/bin/env bash
# script was taken from https://gist.github.com/innovia/fbba8259042f71db98ea8d4ad19bd708 and adjusted with "apply_rbac" function and colorized output
set -e
set -o pipefail
# Colors
RED="\e[01;31m"
@infinitydon
infinitydon / cmd.sh
Created March 29, 2022 18:02 — forked from mejedi/cmd.sh
Populating VPP with a sample GTPU config
#! /bin/sh
set -eu
vppctl create host-interface name vpp0
vppctl set interface state host-vpp0 up
vppctl set interface ip address host-vpp0 172.16.16.2/24
vppctl create host-interface name vpp1
vppctl set interface state host-vpp1 up
@infinitydon
infinitydon / netpps.sh
Created March 20, 2022 14:53 — forked from joemiller/netpps.sh
shell: quick linux scripts for showing network bandwidth or packets-per-second
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second
@infinitydon
infinitydon / job.yaml
Created January 8, 2019 15:41 — forked from alexellis/job.yaml
Use a Kubernetes Job and Kaniko to build an OpenFaaS function from Git
# Alex Ellis 2018
# Example from: https://blog.alexellis.io/quick-look-at-google-kaniko/
# Pre-steps:
# kubectl create secret generic docker-config --from-file $HOME/.docker/config.json
# Other potential optimizations (suggested by @errordeveloper)
# - Store "templates" in a permanent volume
# - Download source via "tar" instead of git clone