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 / 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 / Preferences.sublime-settings
Last active July 3, 2021 20:57
Sublime Text 4 Settings
{
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"default_line_ending": "unix",
"drag_text": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Consolas",
"font_options":
[
"subpixel_antialias"
@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 / Preferences.sublime-settings
Last active July 3, 2021 21:00
Sublime Merge 2 Settings
{
"always_show_command_status": true,
"expand_merge_commits_by_default": true,
"theme": "Merge Dark.sublime-theme",
"translate_tabs_to_spaces": true,
"git_binary": "system",
"ui_scale": 1.15,
"hardware_acceleration": "opengl",
"font_size": 10,
}
@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
@tomdaley92
tomdaley92 / README.md
Last active May 25, 2024 05:52
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 / 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 June 5, 2024 22:07
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 / karabiner.json
Created August 17, 2021 22:04
Karabiner elements MacOS configuration (capslock + j,k,l,i,u,o => arrow keys and page up/down)
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": true
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@tomdaley92
tomdaley92 / .Xmodmap
Last active September 5, 2021 01:59
Debian Caps-lock Re-purposing
keycode 66 = Mode_switch
keysym j = j J Left
keysym l = l L Right
keysym i = i I Up
keysym k = k K Down
keysym u = u U Home
keysym o = o O End