Skip to content

Instantly share code, notes, and snippets.

- title: "Main"
path: main
type: custom:grid-layout
layout:
grid-template-columns: 33.33% 33.33% 33.33%
cards:
- type: horizontal-stack
view_layout:
grid-column-start: 1
grid-column-end: 5
@clintkev251
clintkev251 / backup
Created July 28, 2022 00:01
Simple backup user script for unraid + rclone
#!/bin/bash
echo "Starting backup of appdata"
rclone sync /mnt/user/Docker\ Backup backblaze:some-bucket/Docker\ Backup --transfers 1 --bwlimit 75M
echo "Starting backup of Shared Documentation"
rclone sync /mnt/user/Shared\ Documentation backblaze:some-bucket/Shared\ Documentation --bwlimit 75M
echo "Starting backup of Read Media"
rclone sync /mnt/user/Read_Media/Music backblaze:some-bucket/Read_Media/Music --bwlimit 75M
echo "Starting backup of Pictures"
rclone sync /mnt/user/Pictures backblaze:some-bucket/Pictures --bwlimit 75M
echo "Starting backup of Workdata"
@clintkev251
clintkev251 / generic-backup.sh
Created July 28, 2022 00:06
Generic backup script which stops and restarts containers
#!/bin/bash
echo "-----Stopping containers-----"
docker stop $(docker ps -q)
echo "-----Creating archive-----"
tar -cf stacks.tar stacks
echo "-----Restarting containers-----"
docker start $(docker ps -a -q)
echo "-----Uploading backup-----"
rclone sync stacks.tar backblaze:some-bucket
echo "-----Upload complete, cleaning up-----"
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC9CrqY1gETFzd1wsv9q+wWQtVwTMM0IHaSmTDds1UcjZZnAvKdiTPXuv/vbQj5rCQ+mthpBT9LvSse125iK9ZBWTRGY9q/E+3UzoLuXSKYZ5A0hzQ8h8b/OfILHKGa/Eyo/x3T0Ms+7867qukz8oQ/oEXN8zAZzqsGgHAfptbDKN3U7eM2K/KP/C5ITCJxfA3XN6/EIHTAMpemxlBH/FbIkFQ3PJlwqUP3Z78PrCNIrb4rP63tKOhAdgev8CCPjzCPxtG3KsfAvOpJ2e9tCJFVVYDL4o8jJT8FRW0HRfNT2WkE4AGNRonYWUnxW/QmToE9PHj8E0XDvKJGhc7mYHv0yxxJ+joV4IHUpKOwI9CeLluKop+TeVuI7ef7WI6fr9Yv2i+ZYK02YrvsPAAnNfAAOOtaoTGWJNSYyvV78Tj/p1YeagAipEM5eTcL0H6PK03iPSyO7GmmLrHm1eAfFxGxOsJdG3lTkLi+rHLPt1Soz4Iqd4whLodlzpKpDSFMnnItNlzTJPPoO1N5XsG//9iUkrevBip7+g+L6SeQeLgvqsCxEQHNC0JyStEZ5sNPTou1iBHUZb9K5wSaXEOoq8ner7IoPIt8kBmGk5QLdDRnTiYXqvxaJ0YPwg9JOh7zvrQpAYhfc7Nhq+aTSM9GeniPFDP1a8NESppcyoUyHBw+sQ== Local Servers
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: plex
name: plex
namespace: media
spec:
progressDeadlineSeconds: 600
---
apiVersion: v1
kind: ConfigMap
metadata:
name: recyclarr
namespace: media
data:
recyclarr.yaml: |
sonarr:
sonarr-main:
esphome:
name: emporiavue2
external_components:
- source: github://emporia-vue-local/esphome@dev
components:
- emporia_vue
esp32:
board: esp32dev
AWSTemplateFormatVersion: 2010-09-09
Description: Template which deploys a basic VPC with a single SG, 2 public subnets and an IGW. Optionally can also deploy 2 private subnets and a NAT gateway
Parameters:
Subnet1AzParameter:
Type: AWS::EC2::AvailabilityZone::Name
Description: First subnet avalibility zone
Subnet2AzParameter:
Type: AWS::EC2::AvailabilityZone::Name
Description: Second subnet avalibility zone
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@clintkev251
clintkev251 / helm.yaml
Last active June 29, 2024 13:04
Velero helm release
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: velero
namespace: argocd
spec:
project: default
destination:
server: "https://kubernetes.default.svc"
namespace: velero