(https://computingforgeeks.com/how-to-extend-increase-kvm-virtual-machine-disk-size/)
sudo virsh list| #!/usr/bin/env bash | |
| # Using "--insecure-skip-tls-verify" as I need to backup a cluster before certificate rotation where already expired. | |
| # Below script should create the following structure: ./{namespace}/{resouce-type}/{resouce-name}.yaml | |
| for NAMESPACE in $(kubectl get ns --insecure-skip-tls-verify --no-headers -o custom-columns=":metadata.name") | |
| do | |
| for n in $(kubectl get -n $NAMESPACE --insecure-skip-tls-verify -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob) | |
| do | |
| mkdir -p $(dirname $NAMESPACE/$n) |
| 'Usage as Excel function: =getCountryFromAD("UPN") | |
| Function getCmdlineOutput(cmd As String) | |
| CreateObject("WScript.Shell").Run "cmd /c """ & cmd & "|clip""", 0, True 'output>clipbrd | |
| With CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}") 'latebound clipbrd obj | |
| .GetFromClipboard 'get cmdline output from clipboard | |
| getCmdlineOutput = .GetText(1) 'return clipboard contents | |
| End With | |
| End Function |
| #!/bin/bash | |
| # Purpose: Read Comma Separated CSV File w/ id,base64 ecoded PNG and convert to PNG file | |
| # Author: Vivek Gite under GPL v2.0+ (CSV parser) and Base64 changes by Danton Heuer under GPL v2.0+ | |
| # Usage: $ sh ./convert.sh filename.csv | |
| echo "Converting Base64 to PNG from CSV file '$1' to ./exports folder" | |
| mkdir -p exports | |
| INPUT="$1" |