Skip to content

Instantly share code, notes, and snippets.

View adaRn's full-sized avatar

Adam S. adaRn

View GitHub Profile
@sharepointoscar
sharepointoscar / minikubedelete
Last active November 25, 2023 18:47
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@lightyrs
lightyrs / list_rails_models.rb
Created December 8, 2011 21:36
Rails List All Models
ActiveRecord::Base.connection.tables.map do |model|
model.capitalize.singularize.camelize
end
# returns ["Activity", "Article", "User", "Video", "Vote"]