Skip to content

Instantly share code, notes, and snippets.

@hostberg
hostberg / github_gpg_key.md
Created March 2, 2018 18:26
Signing commits using GPG (macOS High Sierra)

Signing commits using GPG (macOS High Sierra)

Step 1: Install software

brew install gpg2 gpg-agent pinentry-mac       

Step 2: Update ~/.gnupg/gpg-agent.conf

pinentry-program /usr/local/bin/pinentry-mac

Keybase proof

I hereby claim:

  • I am hostberg on github.
  • I am hostberg (https://keybase.io/hostberg) on keybase.
  • I have a public key ASDbEXQjYL3-78JkNhw0F4qY-MV8-ATreWOCwHDzpOImpAo

To claim this, I am signing this object:

Proxmox with LVM-thin and why we should use Trim/Discard

Excerpts from the Proxmox VE Administration Guide]

LVM normally allocates blocks when you create a volume. LVM thin pools instead allocates blocks when they are written. This behaviour is called thin-provisioning, because volumes can be much larger than physically available space.

8.10.2. Trim/Discard It is good practice to run fstrim (discard) regularly on VMs and containers. This releases data blocks that the filesystem isn’t using anymore. It reduces data usage and resource load. Most modern operating systems issue such discard commands to their disks regularly. You only need to ensure that the Virtual Machines enable the disk discard option.