Skip to content

Instantly share code, notes, and snippets.

View purvalpatel's full-sized avatar

purval patel purvalpatel

View GitHub Profile
@purvalpatel
purvalpatel / k8sgpt.md
Last active June 5, 2026 04:52
purvalpatel

k8sgpt is a tool for scanning your Kubernetes clusters, diagnosing, and triaging issues in simple English.

It has SRE experience codified into its analyzers and helps to pull out the most relevant information to enrich it with AI.

Setup k8sgpt package:

Download K8sgpt for ubuntu:

curl -LO https://github.com/k8sgpt-ai/k8sgpt/releases/download/v0.4.33/k8sgpt_amd64.deb
@purvalpatel
purvalpatel / filevalidation.py
Created March 28, 2016 08:50
Path validation
def on_mkdir_clicked(self,widget):
path1=self.entry1.get_text()
if os.path.isabs(path1):
print("valid path")
else:
print("invalid path")
if not os.path.exists(path1):
os.mkdir(path1)