Skip to content

Instantly share code, notes, and snippets.

import looker_sdk
import slack
from datetime import datetime
#load the connection parameters
sdk = looker_sdk.init31("/root/Looker_SDK/Looker.ini")
queries = sdk.all_running_queries() #load all running queries
threshold = 60 * 10 # Threshold for Query termination - currently set for 10mins
@itaysk
itaysk / prepull.yaml
Last active January 26, 2024 17:37
Kubernetes: Pre-pull images into node (moved to: https://github.com/itaysk/kube-imagepuller )
###
# There's a newer version available here:
# https://github.com/itaysk/kube-imagepuller
# All future updates will be made there.
# Please also post you questions as issues on that repo instead of commenting here
###
apiVersion: apps/v1beta2
kind: DaemonSet
@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no