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 May 20, 2025 14:38
[DEPRECATED] Python script to compute updates to the Kubernetes go.mod to see how far we are behind latest in vendored repos

Generated on May 16, 2025

Package Current Latest URL
cel.dev/expr v0.23.1 v0.24.0 https://cel.dev/expr/compare/v0.23.1...v0.24.0
github.com/Azure/go-ansiterm 306776ec8161 faa5f7b0171c https://github.com/Azure/go-ansiterm/compare/306776ec8161...faa5f7b0171c
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/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.8.0 v1.9.0 https://github.com/containerd/containerd/api/compare/v1.8.0...v1.9.0
@nadavrot
nadavrot / Matrix.md
Last active May 19, 2025 10:19
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 May 13, 2025 10:00
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*".