I want to load dynamic HTML content via AJAX, then compile it, because it contains angular directives.
<!DOCTYPE html>
<html ng-app="app">
<head>| #!/bin/sh | |
| # based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
| # delete all evicted pods from all namespaces | |
| kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff state from all namespaces | |
| kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
| # delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
| /** | |
| * Converts an image to a dataURL | |
| * @param {String} src The src of the image | |
| * @param {Function} callback | |
| * @param {String} outputFormat [outputFormat='image/png'] | |
| * @url https://gist.github.com/HaNdTriX/7704632/ | |
| * @docs https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement#Methods | |
| * @author HaNdTriX | |
| * @example | |
| * |