Skip to content

Instantly share code, notes, and snippets.

View nntoan's full-sized avatar
🌀

Toan Nguyen nntoan

🌀
View GitHub Profile
@nntoan
nntoan / GUIDE.md
Created February 8, 2021 04:09
Vagrant resizedisk post

Updating existing vagrant box

  • Do all of the above
  • Run vagrant halt & vagrant up (You should see something like "Resized disk: old 32768 MB, req 51200 MB, new 51200 MB")
  • SSH to vagrant box
  • Run sudo cfdisk /dev/sda
  • Use arrows to select your disk probably sdaX. Mine was sda3.
  • Then select resize using arrow keys. Accept the suggested disk size.
  • Then select write. And answer yes.
  • You can select quit now.
@phortuin
phortuin / signing-git-commits.md
Last active June 1, 2024 10:46
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg