Skip to content

Instantly share code, notes, and snippets.

View JackBuggins's full-sized avatar

Jack Richard Buggins JackBuggins

  • IBM UK Ltd.
  • London
View GitHub Profile
@JackBuggins
JackBuggins / findStuckJobs.sh
Last active November 14, 2023 17:50
A simple script that can help you find any jobs that are stuck in the state BackoffLimitExceeded after failure. Note that this will depend on using jq-1.6 and GNU-Sed in this example.
#!/bin/bash
# Fetch the list of jobs to evaluate...
JOBS_TO_EVALUATE=$(
kubectl get job -o json \
| jq '.items[] | .metadata.name' \
| sed 's/"//g' \
);
# Find jobs that are stuck in the state BackoffLimitExceeded
@JackBuggins
JackBuggins / SimpleHTTPServerWithUpload.py
Created April 2, 2018 04:23 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""