Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Roppo Ropes

View GitHub Profile
@Ropes
Ropes / pubkeys.md
Created Feb 2, 2021
sea shells see shells on the sea shore
View pubkeys.md

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBS7ZmOdRvXN7Mz9ex1UT0rgCuAo2O4NznzUaRV3/MIjrk7HvELoTpw4opEluC+7rTc3thm2tIfWrL9sgp1pD5Fsvco3PYA7bK9aPUfi5GI3MSZOmG9jCnQe634gWaSVQKYxLgrfpyT9x0VJCnyjr7aazmIkHkHN9iBBUGRf/M8maEGrcR90TJSF5ICg605K1ZAph5e+QFGFTLToaBQ95hLh+ucjWitqF64OGrOMub65eFhRIwQowMivryy+2Xcx9UKwU5f87XmwefcqcsBdEpaNeAkZ1t5MeDxJUxTX92b6SwsOudL32Oipj5le4xEg5g7W2MKiSZ7nwE1kJGPKHxd/9dY8MWLX6TFfrPJ2B1tMcuO7jOxFxUt/lHdD8xy7yF3I+5Y4ekIVC8bMIpZnr6l2OBsrs8vZG9M0q/eEj2/uZPMhm6O+bN99ag/1tMhSE/EUsS+e7zp0E0ib5C1A61im70HDeUzi5dzZBrY8FqNoo3aw78rx4igs6+6ielgpHMnnP+6F1slJLb2Wg7v0dLsjJ04j1KVvqymIoK56pC7HIe+FxOab0ZJeH99VBoM8L6D2GqGhRs4RIG2npIKG2VG8Vc4Bb/gyXujdLB7yS6SqM/kdTjRyJQJoyeYR1hF6ad1qhXyCxt2gBdeJg0si+qK2R0Gh3MpN9y2b0oEQ0q3Q== joshroppo@gmail.com

@Ropes
Ropes / keybase.md
Last active Jun 22, 2020
keybase.md
View keybase.md

Keybase proof

I hereby claim:

@Ropes
Ropes / kubectl.md
Last active Aug 11, 2017
Kubernetes Toolbelt
View kubectl.md

List CPU/Memory capacity of nodes

kubectl describe nodes | grep -A 2 -e "^\\s*CPU Requests"

kubectl describe nodes | egrep -A 2 "(^\\s*CPU Requests)|(^Name)"

List all Pods keyed by their host Node:

View top100.csv
Denali 20 320 20 156 AK Alaska Range
Mt Logan 19 541 17 215 YT St Elias Mountains
Pico de Orizaba 18 491 16 148 PU Cordillera Neovolcanica
Mt St Elias 18 008 11 184 AK/YT St Elias Mountains
Volcan Popocatepetl 17 717 9 909 MR Cordillera Neovolcanica
Mt Foraker 17 400 7 200 AK Alaska Range
Mt Lucania 17 192 9 974 YT St Elias Mountains
Volcan Iztaccihuatl 17 126 5 053 EM Cordillera Neovolcanica
King Peak 16 972 3 455 YT St Elias Mountains
Mt Bona 16 500 6 800 AK St Elias Mountains
@Ropes
Ropes / bashrc.sh
Created Apr 17, 2017
Kubernetes kubectl Aliases
View bashrc.sh
alias ktl='kubectl'
alias kpd='kubectl get pods'
alias kwatch='kubectl get events --watch'
alias kcgc='kubectl config get-contexts'
alias kcsg='kubectl config set-context'
@Ropes
Ropes / gke.md
Last active Jul 20, 2017
Summations of Standard GCP VM CPUs
View gke.md

Sum the number of cores of running VMs in GKE

gcil | grep standard | grep RUNNING | awk '{print $3}' | cut -d'-' -f3 | paste -s -d+ | bc

Add tags to all VMs of an instance Group

gcloud compute instance-groups list-instances <GKE INSTANCE GROUP NAME> --format=json | jq .[].instance | cut -c93- | tr -d "\"" | xargs -d " " gcloud compute instances add-tags --tags=$TAG
@Ropes
Ropes / hihi copy pasta.md
Created Jan 3, 2017
Copy small blobs of files from one terminal to another.
View hihi copy pasta.md

Compress and tarball files, and pipe the output into base64 which will get dumped to your terminal.

tar -czf - ./filesyouwant* | base64

Copy only the base64 output characters into your host's clipboard.

@Ropes
Ropes / DevOps_Dialogue.md
Last active Jan 2, 2017
OpsDoc Service Dialogue Template
View DevOps_Dialogue.md

This document exists to provide a template for documenting operational information about a service. The goal is to cover all of the bases so a reader can get a general understanding of the service and how to operate it.

The topics listed are a minimal starting point for documenting a service. Some won't be relevant, if so state why. Almost certainly some issues have been missed should be added to the template as they're discovered(<3 PRs).

#DevOps Dialogue Service Template

View gist:96504aa424a969097fe9

Show all packet contents traversing a port
tcpdump -s 0 -A 'tcp port 9200'

Show packets with a destination on a port
tcpdump -s 0 -A 'tcp dst port 9200

Voodoo to show the HTTP Header of packets destined for a port
tcpdump -s 0 -A 'tcp dst port 9200 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)'

View gist:6a3f317adf0d65b3cd60
Woods-With Light and Love
CONOR OBERST ‘Hundreds of Ways’
ALVVAYS ‘Archie, Marry Me’
PORTER ROBINSON FEAT. AMY MILLAN ‘Divinity’
THE 2 BEARS ‘Not This Time’
SON LITTLE ‘The River’
FATHER JOHN MISTY ‘Bored In The USA’ et other music
TY SEGALL ‘Feel’
ADIA VICTORIA ‘Stuck in the South’
STRAND OF OAKS ‘JM’