Skip to content

Instantly share code, notes, and snippets.

Avatar

Anthony Spiteri anthonyspiteri

View GitHub Profile
View justwork-rolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kubeapps-clusterrole
namespace: kubeapps
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kubeapps-clusterrole
subjects:
View justwork-clusterrole.yaml
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubeapps-clusterrole
rules:
- apiGroups:
- policy
resources:
- podsecuritypolicies
verbs:
View justwork-psp.yaml
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: kubeapps-psp
spec:
privileged: true
seLinux:
rule: RunAsAny
supplementalGroups:
rule: RunAsAny
View get-BackupProtectionSingleTenant.ps1
<#
.SYNOPSIS
Get-BackupProtectionSingleTenant.ps1
.DESCRIPTION
Allows you to select Backup Protection Tenant account and return total storage in GB and cost of storage to the provider and to the client.
Folder Calculation code taken from https://www.gngrninja.com/script-ninja/2016/5/24/powershell-calculating-folder-sizes
View CloudMaintenanceModeMessage.ps1
$registryPath = "HKLM:\SOFTWARE\Veeam\Veeam Backup and Replication"
$name = "CloudMaintenanceModeMessage"
clear
write-host
$existing = Get-ItemProperty "$registryPath"
$existingkey = $existing.CloudMaintenanceModeMessage
write-host "Existing Maintenance Mode Message (if blank default is set):" $existingkey
write-host
@anthonyspiteri
anthonyspiteri / cassandra.sh
Last active Jun 23, 2021 — forked from ixaxaar/cassandra.sh
Simple bash script to install cassandra cluster
View cassandra.sh
#!/usr/bin/env bash
# A script to install cassandra modified by Anthony Spiteri for vCloud Director Metric Database installs
# ADD SEE NODES HERE - FOR SUPPORTED INSTALL 4 NODES WITH 2 SEEDS REQUIRED
SEEDS[0]='172.17.0.10'
#SEEDS[1]=172.17.0.11'
#SEEDS[2]=172.17.0.12'
#SEEDS[3]=172.17.0.13'