Skip to content

Instantly share code, notes, and snippets.

View diablo02000's full-sized avatar

Christophe Biguereau diablo02000

View GitHub Profile
~$ http --headers --auth-type=edgegrid \
-a default: POST ':/ccu/v3/delete/url/production' \
objects:[email protected]
# `-a default` is the profile name, setup in .edgegrc file.
# the file `urls-to-delete-on-akamai.list` contain an array with a list of urls to delete.
@diablo02000
diablo02000 / Kubectl command
Last active May 31, 2021 13:19
Useful kubectl command
# Remove evicted pods on Kubernetes namespace.
~$ kubectl get pods -n kube-system| grep Evicted | awk '{print $1}' | xargs kubectl delete pod
import logging
import colorlog
# Init logger variable.
LOGGER = colorlog.getLogger()
def set_logger(verbose):
"""
Setup logging module
:param verbose: Set debug log level.