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/sh | |
| kubectl apply --namespace kasten-io -f - <<EOF | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: vbr | |
| namespace: kasten-io | |
| secrets: | |
| - name: vbr-secret | |
| EOF |
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
| $drives = (Get-PSDrive -PSProvider FileSystem).Root | |
| $isodrive = @($drives | ? { $_ -ne "${env:SystemDrive}\" })[0] | |
| $links = @{ | |
| "pg"="Redistr\x64\PostgreSQL\15.1-1\postgresql-15.1-1-windows-x64.exe"; | |
| "catalog"="Catalog\VeeamBackupCatalog64.msi"; | |
| "sqlclr"="Redistr\x64\SQLSysClrTypes.msi"; | |
| "report"="Redistr\ReportViewer.msi"; | |
| "vbr"="Backup\Server.x64.msi"; |
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
| $workdir = "c:\workdir" | |
| $gistid = "38c41c34bda1c9faca86c8934775c164" | |
| $gist = Invoke-RestMethod -Uri ("https://api.github.com/gists/{0}" -f $gistid) | |
| $fname = @($gist.files | gm -MemberType NoteProperty)[0].Name | |
| $gist.files."$fname".content | set-content (join-path $workdir $fname) |
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
| DL=$(curl "https://api.github.com/gists/766e78e248acd7308ce9e34ad490dd14") | |
| FNAME=$(echo $DL | jq -r '[.files[] | .filename] | .[0]') | |
| echo $DL | jq -r ".files[\"$FNAME\"].content" |
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 > user-data-gist.sh | |
| #!/bin/sh | |
| apt-get update -y | |
| apt-get upgrade -y | |
| DEBIAN_FRONTEND=noninteractive apt-get install jq -y | |
| touch /tmp/didupgrade.txt | |
| curl -o /tmp/gist https://api.github.com/gists/d6d158d9ade14bedb270199aa173a105 | |
| jq -r '.files."autoinstall.sh".content' /tmp/gist > /tmp/autoinstall.sh |
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/sh | |
| TAGVAL="somecommontag" | |
| REGION="us-west-1" | |
| RESTYPE="instances" | |
| RES=$(aws --region=$REGION ec2 "describe-$RESTYPE" --filters "Name=tag-value,Values=$TAGVAL") | |
| FILTEREDLIST=$(echo $RES | jq -r '[.Reservations[].Instances[] | {id:.InstanceId,name:(.Tags[] | select(.Key | contains("Name")).Value)}]') | |
| L=$(echo $FILTEREDLIST| jq length) | |
| for ((j=0;j<$L;j++)); do |
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
| $dw = [Microsoft.Win32.RegistryValueKind]::DWord | |
| $str = [Microsoft.Win32.RegistryValueKind]::String | |
| function Set-VBRReg { | |
| param($n,$v,$p) | |
| $regpath = 'HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication' | |
| New-ItemProperty $regpath -name $n -Value $v -PropertyType $p -Force | Out-Null | |
| } | |
| Set-VBRReg -n "UIClassifiedMode" -v 1 -p $dw | |
| Set-VBRReg -n "UIClassifiedStripeBackgroundColor" -v "#005f4b" -p $str |
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
| dd if=/dev/urandom of=activefull.vbk bs=1G count=1 |
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
| import 'dart:convert'; | |
| import 'package:http/http.dart' as http; | |
| class GistFile { | |
| String name; | |
| String rawurl; | |
| String _content = ""; | |
| bool truncated; | |
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
| --- | |
| meta: | |
| name: Russian - English Vehicles | |
| description: List of vehicles in Russian English flash deck | |
| license: MIT | |
| author: "@tdewin" | |
| data: | |
| cards: | |
| - q: машина | |
| t: |