Skip to content

Instantly share code, notes, and snippets.

View khaled's full-sized avatar

khaled agrama khaled

  • freelance
  • North Carolina, US
View GitHub Profile
@khaled
khaled / kubernetes-cheats.md
Last active January 8, 2020 05:00
kubernetes cheat sheet

Force delete a pod [source]

kubectl delete pod <PODNAME> --grace-period=0 --force --namespace <NAMESPACE>

@khaled
khaled / volumeInspector.sh
Last active March 1, 2022 10:04
creates a temporary pod that can be use to inspect the contents of a kubernetes pvc. the pvc is mounted in the /data directory.
#!/bin/bash
#
# usage: ./volumeInspector.sh <pvc-name> <namespace>
#
# creates a temporary pod that can be use to inspect the contents
# of a pvc. the pvc is mounted in the /data directory.
#
#
@khaled
khaled / most_a.rb
Last active March 15, 2017 23:41 — forked from husseinagrama/most_a.rb
words = ["Alphabet", "aardvark", "anarchy", "purple", "apple", "avalanche", "potato"]
counts = []
words.each do |word|
letters = word.split("")
count = 0
letters.each do |letter|
if letter == "A" || letter == "a"
count = count + 1
end
end