Skip to content

Instantly share code, notes, and snippets.

View akhilerm's full-sized avatar

Akhil Mohan akhilerm

View GitHub Profile
@dims
dims / skip-job.sh
Created February 6, 2025 11:55
Script to skip certain jobs in a PR
#!/usr/bin/env bash
# Default repository and job name
REPO="google/cadvisor"
JOB_NAME="pull-cadvisor-e2e"
# Function to display usage
usage() {
echo "Usage: $0 -p <PR_NUMBER> [-j <JOB_NAME>] [-s <SHA>] [-r <REPOSITORY>]"
echo "Example: $0 -p 3615"
@dims
dims / differences.md
Last active January 14, 2025 14:55
Python script to compute updates to the Kubernetes go.mod to see how far we are behind latest in vendored repos
Package Current Latest URL
cel.dev/expr v0.18.0 v0.19.1 https://cel.dev/expr/compare/v0.18.0...v0.19.1
github.com/Azure/go-ansiterm 306776ec8161 faa5f7b0171c https://github.com/Azure/go-ansiterm/compare/306776ec8161...faa5f7b0171c
github.com/Microsoft/hnslib v0.0.8 v0.0.15 https://github.com/Microsoft/hnslib/compare/v0.0.8...v0.0.15
github.com/antlr4-go/antlr/v4 v4.13.0 v4.13.1 https://github.com/antlr4-go/antlr/v4/compare/v4.13.0...v4.13.1
github.com/asaskevich/govalidator f61b66f89f4a a9d515a09cc2 https://github.com/asaskevich/govalidator/compare/f61b66f89f4a...a9d515a09cc2
github.com/chai2010/gettext-go v1.0.2 v1.0.3 https://github.com/chai2010/gettext-go/compare/v1.0.2...v1.0.3
github.com/container-storage-interface/spec v1.9.0 v1.11.0 https://github.com/container-storage-interface/spec/compare/v1.9.0...v1.11.0
github.com/containerd/containerd/api v1.7.19 v1.8.0 https://githu
@nadavrot
nadavrot / Matrix.md
Last active February 14, 2025 15:25
Efficient matrix multiplication

High-Performance Matrix Multiplication

This is a short post that explains how to write a high-performance matrix multiplication program on modern processors. In this tutorial I will use a single core of the Skylake-client CPU with AVX2, but the principles in this post also apply to other processors with different instruction sets (such as AVX512).

Intro

Matrix multiplication is a mathematical operation that defines the product of

@dpino
dpino / ns-inet.sh
Last active February 2, 2025 15:59
Setup a network namespace with Internet access
#!/usr/bin/env bash
# set -x
if [[ $EUID -ne 0 ]]; then
echo "You must be root to run this script"
exit 1
fi
# Returns all available interfaces, except "lo" and "veth*".