Skip to content

Instantly share code, notes, and snippets.

View chadmayfield's full-sized avatar

Chad Mayfield chadmayfield

View GitHub Profile

My Kuberentes Command Reference

This is my Kubernetes reference page. Most are commands that I don't want to forget, links to credits where due.

Get detailed cluster information

kubectl cluster-info dump

Get list of Kubernetes node IP addresses

kubectl get nodes -o jsonpath='{ $.items[*].status.addresses[?(@.type=="InternalIP")].address }'

@chadmayfield
chadmayfield / network_interface_notes.md
Last active June 3, 2019 19:36
Notes on Network Interfaces in Linux/Unix systems

Network Interface Notes

Beginning in Systemd v197, network interfaces assigned by systemd/udev are "predicatble";

Names are now based on;

  • Index numbers for on-board devices (eno1)
  • PCI-ehotplug slot index numbers (ens1)
  • Physical/geographical location of hardware connector (enp2s0)
  • MAC address (enx78e7d1ea46da)
  • Classic, unpredictable kernel-native naming (eth0)
@chadmayfield
chadmayfield / private_fork.md
Created September 10, 2020 22:15 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@chadmayfield
chadmayfield / install_sshpass_macos.sh
Created October 30, 2020 17:25
Download and compile the latest sshpass since homebrew will not allow it's use anymore in Catalina.
#!/bin/bash
if [ "$(xcode-select -p 1>/dev/null; echo $?)" -ne 0 ]; then xcode-select --install; fi && \
curl -O -L -J https://sourceforge.net/projects/sshpass/files/latest/download && \
ARCHIVE="$(find . -name sshpass*.tar.gz -ctime -30s)" && \
tar xvzf "$ARCHIVE" && \
cd "${ARCHIVE%%.*}" && \
echo "./configure" && \
echo "make" && \
echo "sudo make install" && \
@chadmayfield
chadmayfield / Brewfile
Last active January 24, 2025 23:31
My current Brewfile used when setting up my mac and also for updating it.
# Brewfile: Homebrew bundle file for macOS or Linux app install (with notes/source repos)
#
# Author : Chad Mayfield ([email protected])
# License : GPLv3
#
# INFO: * Links and comments are added because I'm too old to remember where everything is :)
# * install.sh can be used, but it needs some love (some of it doesn't work correctly).
# * TODO items (and additional information) is listed at the bottom
#
# Installation steps;