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"
@theodson
theodson / disable-macos-man-page-shortcuts.md
Created February 13, 2022 22:55 — forked from mrmanc/disable-macos-man-page-shortcuts.md
Turn off annoying macOS man page shortcuts via the command line

Turn off annoying macOS man page shortcuts via the command line

Context

macOS 10.14.4 introduced a keyboard shortcut that conflicts with one of IntelliJ IDEA’s best shortcuts. cmd-shift-a pops open a Terminal window running an apropos search on the text selection, rather than the command palette.

You can manually disable these keyboard shortcuts via System Preferences, but this script does this programmatically. I was unable to find any existing information about how to do this via the command line, so I rolled my own solution.

It took a long time to work out which defaults domain to find the plist for this. I probably worked out the pbs domain from this post.

@dims
dims / differences.md
Last active September 7, 2025 22:15
[DEPRECATED] Python script to compute updates to the Kubernetes go.mod to see how far we are behind latest in vendored repos (please look in artifacts generated in this job - https://testgrid.k8s.io/sig-arch-code-organization#unit-master-dependencies&width=20)

Generated on Sep 1, 2025

Package Current Latest URL
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/coreos/go-oidc v2.3.0 v2.4.0 https://github.com/coreos/go-oidc/compare/v2.3.0...v2.4.0
github.com/coreos/go-systemd/v22 v22.5.0 v22.6.0 https://github.com/coreos/go-systemd/v22/compare/v22.5.0...v22.6.0
@nadavrot
nadavrot / Matrix.md
Last active August 17, 2025 08:17
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*".