Skip to content

Instantly share code, notes, and snippets.

View mtintes's full-sized avatar
🦦

Mike Tintes mtintes

🦦
View GitHub Profile
@mtintes
mtintes / tabby-cat.json
Last active February 21, 2022 18:19
Tabby cat Items
{"newItems":[],"list":["glasses-Heart","glasses-Alien","toy-Yarn","hat-5","hat-7","hat-3","hat-6","toy-8","hat-4","toy-6","hat-8","glasses-3","toy-4","hat-1","toy-3","glasses-2","glasses-1","glasses-4","toy-5","toy-7","toy-2","toy-1","toy-9","hat-9","glasses-5","hat-2","toy-Pizza","hat-Baseball","glasses-CatEye","toy-Donut","hat-Fez","glasses-Scuba","toy-Flamingo","hat-Spinner","toy-Fishbowl","glasses-Blue","toy-Fishbones","toy-SoccerBall","toy-BonsaiTree","toy-FoamFinger","hat-Beanie","hat-Princess","hat-King","hat-Fedora","hat-Bow","toy-Wine","glasses-Kerry","glasses-ThreeD","glasses-Sunglasses","hat-PartyHat","toy-Coffee","toy-Martini","hat-Sweatband","hat-Chef","toy-Rocketship","toy-Synth","toy-MagicWand","glasses-OldMan","toy-IceCream","glasses-Raybans","toy-Mouse","toy-Campfire","toy-MiniGolf","hat-Unicorn","glasses-Aviators","toy-Cake","toy-Flowers","toy-Dough","toy-Rocket","toy-sushi","toy-flowers","toy-Sushi","toy-Popsicle","toy-HotDog","toy-BeachBall","hat-Sombero","hat-BeachBall","toy-Strawberry","
@mtintes
mtintes / jq_useful
Created July 19, 2021 16:00
useful jq
cat file.json| jq '.thing' | jq 'keys'
#all the keys under "thing"
{
"thing": {
"prop1": "value",
"prop2": "value"
}
@mtintes
mtintes / k8s usefuls
Created January 19, 2021 19:54
useful k8s stuff
get images used in a namespace:
kubectl get pods -n <NAMESPACE> -o jsonpath="{.items[*].spec.containers[*].image}"
@mtintes
mtintes / aliases and funcs
Last active January 4, 2021 20:45
useful aliases and functions that i dont want to remember.
#run an alpine container in interactive mode to debug with k8s or docker. Helpful for finding network junk.
alias kbb="kubectl run -it --rm --restart=Never alpine --image=alpine sh"
alias dbb="docker run --name alpine --rm -i -t alpine sh"
#find the program highjacking that port you wanted to use
function port() {lsof -i tcp:$1}
# DOCKER
#get all the docker ps without all the k8s processes
alias dps="docker ps | grep -v k8s"