Skip to content

Instantly share code, notes, and snippets.

@fevangelou
fevangelou / Software RAID 1 setup on Ubuntu Server 20.04.md
Last active October 28, 2025 03:25
Software RAID 1 setup on Ubuntu Server 20.04 (or newer)

Looking to create a Software RAID 1 setup for your 2-disk server on Ubuntu Server 20.04?

Screen Shot 2020-06-05 at 20 55 31

Let's start with the basics: the official guide by Ubuntu (https://ubuntu.com/server/docs/install/storage) is outdated/wrong. And as of March 2021 it's possible that there's a bug as well with how the bios_grub partitions are created when using multiple disks.

Now on to the solution:

  • Select "Custom storage layout" when you reach the storage configuration step of the installer.
  • If the disks have existing partitions, click on each disk under AVAILABLE DEVICES and then select REFORMAT. This will (temporarily) wipe out the partitions.
@bigspawn
bigspawn / download-from-facecast.md
Last active October 22, 2025 09:54
How download video from facecast.net
@raven-rock
raven-rock / edit-command-line-in-editor.zsh
Created July 31, 2018 13:18
Zsh: Use `C-x C-e` or `C-x e` to edit current command in $EDITOR with multi-line support. Saving and quitting $EDITOR returns to command prompt with the edited command inserted (but does not execute it until you press enter). Handy!
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^xe' edit-command-line
bindkey '^x^e' edit-command-line