Skip to content

Instantly share code, notes, and snippets.

View tomdaley92's full-sized avatar
💾
Loading...

Tom Daley tomdaley92

💾
Loading...
View GitHub Profile
@tomdaley92
tomdaley92 / README.md
Last active May 3, 2024 10:22
Proxmox - SPICE Client setup for MacOS

Proxmox - SPICE client setup for MacOS

  1. Install a working (and compiled) version of virt-viewer. You may view the homebrew package's upstream source on GitHub.

    brew tap jeffreywildman/homebrew-virt-manager
    brew install virt-viewer
  2. Once that's installed should be able make a call remote-viewer with a pve-spice.vv file downloaded from proxmox web interface

@tomdaley92
tomdaley92 / README.md
Last active April 28, 2024 18:22
Proxmox - Email Alerts Setup (gmail)

Proxmox - Email Alerts Setup (gmail)

  1. SSH into proxmox node and become root user. Run the following commands to download extra software dependencies we'll need.

    apt update
    apt install -y libsasl2-modules mailutils
  2. Enable 2FA for the gmail account that will be used by going to security settings

@tomdaley92
tomdaley92 / makefile
Last active April 15, 2024 07:44
Generic makefile for C/C++ programs
# Thomas Daley
# September 13, 2021
# A generic build template for C/C++ programs
# executable name
EXE = app
# C compiler
CC = gcc
@tomdaley92
tomdaley92 / backup.sh
Last active April 14, 2024 00:51
Proxmox - Handy Scripts
#!/usr/bin/env bash
printf "*** RSYNC START - %s ***\n" "`date`" >> backup.log
rsync -vaxhR --delete /etc rsync@backups.diesel.net:/volume1/pve >> backup.log
rsync -vaxhR --delete /var/lib/vz rsync@backups.diesel.net:/volume1/pve >> backup.log
rsync -vaxhR --delete /var/spool/cron rsync@backups.diesel.net:/volume1/pve >> backup.log
rsync -vaxhR --delete /var/lib/pve-cluster rsync@backups.diesel.net:/volume1/pve >> backup.log
rsync -vaxhR --delete /root rsync@backups.diesel.net:/volume1/pve >> backup.log

Increasing LVM Disk Space (Ubuntu)

Increase live Ubuntu server disk space (requires LVM) without any downtime.

All of the commands below need to be executed as root user.

  1. Create a new partition using unallocated space.

    First we'll need to determine exactly which disk was added or had its size increased.

@tomdaley92
tomdaley92 / settings.json
Last active February 25, 2024 03:01
Windows Terminal Settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
@tomdaley92
tomdaley92 / backup-github.sh
Last active February 25, 2024 03:01
Synology GitHub Backup Script
#!/bin/sh
[ -z "$GITHUB_TOKEN" ] && echo "error: GITHUB_TOKEN required but not set" && exit 1
[ "$#" -lt 2 ] && echo "usage: bash $0 USER|ORG PATH" && exit 1
GITHUB_USER=$1
BACKUP_DIR=$2/${GITHUB_USER}
GITHUB_API_BASE=https://api.github.com
@tomdaley92
tomdaley92 / README.md
Last active February 8, 2024 23:53
The Renter's Home Lab

The Renter's Home Lab

Motivation

      Shortly after starting my career in IT, my team started to embrace the DevOps mentality and it's been pretty hard to look back. As a developer in today's world, I feel lucky and empowered to have access to tools like Ansible & Terraform, so a big part of this is fueled by a desire to strengthen my DevOps skills. Personally, I have found that wearing many hats is key to becoming a more well-rounded programmer as well. And that means learning about all the pieces involved, not just the application layers. So the days of working in a black box are over for me!

      Over time, I also became much more educated on the issues of data privacy and how we blindly trust Tech Giants to not misuse our information. It worries me that often times we are not even aware there is any manipulation happening. I think that fear, combined w

@tomdaley92
tomdaley92 / plex_fast_large.json
Created April 3, 2021 23:46
handbrake presets
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
@tomdaley92
tomdaley92 / .gitconfig
Last active December 19, 2022 19:38
Git & GPG Configuration
# ~/.gitconfig
[core]
excludesfile = /home/tom/.gitignore
[user]
name = Thomas Daley
email = $EMAIL
signingKey = 53590CD5B7BDC149
[commit]
gpgsign = true