Skip to content

Instantly share code, notes, and snippets.

@tazdij
tazdij / dupscout.py
Created February 9, 2015 03:27
A simple python script to detect and remove duplicate files a one or more locations, seperated by a semicolon.
# Written by Don Duvall
# Licensed under MIT
# Date 2015-02-08
# Website: http://deduvall.com/ & http://donaldduvall.com
# Email: [email protected]
#
import os
import hashlib
class DupScout:
@tazdij
tazdij / variant.cc
Created December 29, 2015 05:53 — forked from tibordp/variant.cc
A simple variant type implementation in C++
#include <iostream>
#include <utility>
#include <typeinfo>
#include <type_traits>
#include <string>
template <size_t arg1, size_t ... others>
struct static_max;
template <size_t arg>
@tazdij
tazdij / proxmox_resize_pve-root
Created February 11, 2022 21:01
Proxmox - Resize pve-root
# Check disk space before
df -h
# Delete local-lvm storage in gui
lvremove /dev/pve/data
lvresize -l +100%FREE /dev/pve/root
resize2fs /dev/mapper/pve-root