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 1, 2024 15:14
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.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 / 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 / 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 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 / 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 / .zshrc
Last active November 28, 2021 02:12
Zsh Configuration (oh-my-zshell)
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/tom/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@tomdaley92
tomdaley92 / filename.h
Last active January 29, 2019 23:00
C/C++ Header guards
#ifndef FILENAME_H
#define FILENAME_H
/* Declarations of this file */
#endif /* FILENAME_H */
@tomdaley92
tomdaley92 / example.h
Created December 19, 2018 00:25
Prevent name mangling of C code with C++ compiler
#ifdef __cplusplus
extern "C" {
#endif
/* Declarations of this file */
#ifdef __cplusplus
}
#endif
@tomdaley92
tomdaley92 / rsub_setup.md
Last active July 19, 2021 11:16
Installing and configuring rsub for editing files with sublime through ssh
  1. Install rmate on the remote server
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate && sudo chmod a+rx /usr/local/bin/rsub
  1. Modify your ~/.ssh/config file on your local machine
Host *