Skip to content

Instantly share code, notes, and snippets.

View attiss's full-sized avatar

Attila Fabian attiss

  • Budapest, Hungary
View GitHub Profile
@attiss
attiss / Ephemeral_Containers_example.md
Last active January 12, 2022 11:55
Ephemeral Containers example

Ephemeral Containers demo

Ephemeral Containers are available (as beta) from Kubernetes 1.23:

Pods are the fundamental building block of Kubernetes applications. Since Pods are intended to be disposable and replaceable, you cannot add a container to a Pod once it has been created. Instead, you usually delete and replace Pods in a controlled fashion using deployments.

Sometimes it's necessary to inspect the state of an existing Pod, however, for example to troubleshoot a hard-to-reproduce bug. In these cases you can run an ephemeral container in an existing Pod to inspect its state and run arbitrary commands.

Example: capturing Pod network traffic

@attiss
attiss / argonauts-fixed.svg
Last active January 12, 2022 12:29
Argonauts logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@attiss
attiss / README.md
Last active December 13, 2022 20:05
Wilks Coefficient for Google Sheets

Wilks coefficient function for Google Sheets

About the Wilks coefficient

The Wilks coefficient or Wilks formula is a mathematical coefficient that can be used to measure the relative strengths of powerlifters despite the different weight classes of the lifters.

(source)

Adding custom functions to Google Sheets

#!/bin/bash
nameservers=(a1-207.akam.net. a20-66.akam.net. a14-66.akam.net. a6-64.akam.net. a7-67.akam.net. a5-64.akam.net.)
success=0
failure=0
for n in $(seq 0 100); do
for ns in ${nameservers[@]}; do