Skip to content

Instantly share code, notes, and snippets.

View alexellis's full-sized avatar
📖
Check out my eBook on Go

Alex Ellis alexellis

📖
Check out my eBook on Go
View GitHub Profile
@aojea
aojea / README.md
Last active January 22, 2024 05:48
Sniff CNI commands

CNI SNIFFER

The Container Networking Interface, or CNI, is a generic plugin-based networking solution for configuring the network on containers.

The CNI specification defines:

  1. A format for administrators to define network configuration.
  2. A protocol for container runtimes to make requests to network plugins.
  3. A procedure for executing plugins based on a supplied configuration.
  4. A procedure for plugins to delegate functionality to other plugins.
@slp
slp / OpenFaaS-libkrun-Fedora33.md
Created February 25, 2021 13:53
Installing OpenFaaS with libkrun-based isolation on Fedora 33

Installing OpenFaaS with libkrun-based isolation on Fedora 33

Setting up the system

Revert to cgroup v1

The version of containerd that OpenFaaS will download during the installation doesn't support cgroup v2, so we need to configure systemd to avoid using the Unified cgroup Hierarchy, and reboot the system:

@rberrelleza
rberrelleza / go.mod
Last active January 22, 2024 05:49
sample SSH forward
module forward
go 1.14
require (
github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 // indirect
github.com/gliderlabs/ssh v0.3.0
golang.org/x/crypto v0.0.0-20200406173513-056763e48d71
)
@gabrielsson
gabrielsson / minecraft-on-raspberry-pi.md
Last active April 12, 2024 15:49
Minecraft on Raspberry Pi cluster with metrics

alt

Minecraft on Raspberry Pi cluster with metrics

Ever wanted to put your Rapsberry Pi cluster to great use? Our team is working remotely, so we started to play Minecraft. I decided I would host the Minecraft server on my Raspberry Pi cluster. This gist will guide you through the steps I took to get a k3s cluster up with k3sup and later installed Minecraft as well as metrics exporter and Prometheus Operator

Why?

Quoniam Possumus - Because we can

You'll need

@estesp
estesp / ctr-snapshot-mounts-example.md
Last active December 12, 2023 13:36
example of using ctr snapshot mounts

pull an image

root@ubu1804vm:~# ctr image pull docker.io/library/redis:latest
docker.io/library/redis:latest:                                                   resolved       |+++++++++++++++++++++++++++++++docker.io/library/redis:latest:                                                   resolved       |++++++++++++++++++++++++++++++++++++++|
index-sha256:ddf831632db1a51716aa9c2e9b6a52f5035fc6fa98a8a6708f6e83033a49508d:    done           |++++++++++++++++++++++++++++++++++++++|
manifest-sha256:780f7dacdc133e899fba9ff09c099828b469030acefe6f3bbc16197b55800cfd: done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:75797de34ea7abaf8ebd484896a21f5bda63ffbcade7217dad0be0b8b8333bde:    done           |++++++++++++++++++++++++++++++++++++++|
config-sha256:f0453552d7f26fc38ffc05fa034aa7a7bc6fbb01bc7bc5a9e4b3c0ab87068627:   done           |++++++++++++++++++++++++++++++++++++++|
layer-sha256:68ced04f60ab5c7a5f1d0b0b4e7572c5a4c8cce44866513d30d9df1a15277d6b:    done           |+++++++++++++++++++++
@ppouliot
ppouliot / setFans.sh
Created February 19, 2020 21:25
Script to set the fan speed on Ampere server
#! /bin/sh
logo () {
echo ""
echo " ▄██▄"
echo " ▄█ █▄"
echo " ▄█ █▄"
echo " ▄▄▄▄█ ▄▄▄ █▄"
echo " ▄█▀▀▀ ▄█ ▀██▄"
echo " ▄█▀ ▄█ ▀█▄"
@alexellis
alexellis / expose-apiserver-kubernetes-inlets-pro.md
Last active December 27, 2022 04:10
Get `kubectl` access to your private cluster from anywhere
@xtavras
xtavras / kubernetes_add_service_account_kubeconfig.sh
Created November 25, 2019 10:54
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"
@alexellis
alexellis / sponsor.md
Last active October 27, 2019 21:52
Sponsor me on GitHub

✅ Join the community by sponsoring me on GitHub, you'll receive access to my Insiders Updates and support my work.

👑 Become a Sponsor Now

Why join?

  • 🚀 Insiders gain exclusive access to early previews, updates, news, and events on my OSS projects.

  • I work full-time on Open Source Software and have taken on all of the risk for the community and end-users, so pay whatever you want via GitHub Sponsors and help me get to 200 sponsors by Christmas.

@lucabelluccini
lucabelluccini / rpi4.boot-from-sd-rootfs-on-usb.md
Last active October 13, 2023 12:38
Raspberry Pi 4 - Boot from SD, Rootfs on USB

Raspberry 4B - Boot from SD and rootfs on USB

Update

RPi4 now supports booting directly from USB. First update to get an eeprom which supports USB Boot, then configure the bootloader to boot from USB.

Original guide

  1. Download Raspbian from the official site