<w:sdt>
<w:sdtPr>
<w:docPartObj>
<w:docPartGallery w:val="Table of Contents"/>
<w:docPartUnique/>
</w:docPartObj>
</w:sdtPr>
<w:sdtEndPr>
<w:rPr>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN:VCARD | |
| VERSION:4.0 | |
| FN: John Doe | |
| N:Doe;John;;Dr; | |
| TEL;TYPE=cell:+3221234567 | |
| EMAIL;TYPE=work:john.doe@fakeidentity.be | |
| ORG:FakeIdentity | |
| TITLE:Identity Engineering Team Lead | |
| END:VCARD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "archive/zip" | |
| "encoding/xml" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "strconv" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $reglocation = "HKLM:\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToSnapshot" | |
| $exclusions = @' | |
| $AllVolumes$\TemporaryFiles\*.* /s | |
| C:\backup\exclusions\*.* /s | |
| '@ -split "\n" | |
| for($i=0;$i -lt $exclusions.Count;$i++) { | |
| $e = $exclusions[$i] | |
| Set-ItemProperty -Type MultiString -Path $reglocation -Name ("veeam-{0}" -f $i) -Value $e | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Follow kubectl logs to see the immidiate force write | |
| kubectl logs stockdb-postgresql-0 -f | |
| ```yaml | |
| cat << 'EOF' | kubectl apply -f - | |
| kind: Blueprint | |
| apiVersion: cr.kanister.io/v1alpha1 | |
| metadata: | |
| name: postgresql-hooks | |
| namespace: kasten-io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "sync" | |
| "crypto/rand" | |
| "crypto/tls" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| kubectl get sts,deploy -A -o json \ | |
| | jq '[.items[] | select(.metadata.namespace as $i | ["kube-system","kasten-io"] | index($i) | not ) ]' \ | |
| > wl-with-vol.json | |
| for (( COUNTER=0; COUNTER<$(jq 'length' wl-with-vol.json); COUNTER+=1 )); do | |
| ELEM=$(jq $(printf ".[%d]" $COUNTER) wl-with-vol.json) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| export PATH=$PATH:/Users/$(whoami)/go/bin/ | |
| export GOVC_URL=https://192.168. | |
| export GOVC_USERNAME=root | |
| export GOVC_PASSWORD=Pleaseshareallyourcredentialsongithubnow! | |
| export GOVC_INSECURE=true | |
| export DEF_SSH_USER=root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat <<EOF > data.txt | |
| write-host "All your base, base, base, are belong to us" | |
| write-host "@tdewin" | |
| EOF | |
| VMNAME=vm | |
| govc vm.keystrokes -vm=$VMNAME -s=$(printf "[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String(\"%s\"))>data.ps1" $(cat data.txt | base64)) | |
| govc vm.keystrokes -vm=$VMNAME -c=0x28 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # use ctrl c to exit loop | |
| VM=myvm | |
| [ ! -z "$(uname -a | grep Darwin)" ] && open $(govc vm.console $VM) | |
| NOW=$(date +%s) | |
| PAUSE=2 | |
| while [ 1 -eq 1 ];do |