Skip to content

Instantly share code, notes, and snippets.

View seraph's full-sized avatar

Kevin Francis seraph

View GitHub Profile
@seraph
seraph / Arch Linux btrfs install.md
Created March 11, 2021 00:48 — forked from mikroskeem/Arch Linux btrfs install.md
Arch Linux installation on btrfs subvolumes

Arch Linux btrfs install

0. Prerequisites

  • Plenty of storage - snapshots will take (sort of) a lot of space
  • Latest Arch Linux install iso because those have newer kernels and more bugfixes in btrfs.
  • Have previous experience with installing Arch (like you can install arch with a blind fold).
  • Read everything through

1. Parititions

Pick a partition scheme fitting your needs, GPT for UEFI and MBR for BIOS based systems.

@seraph
seraph / yt-unsub.js
Created November 22, 2017 20:49 — forked from DessertArbiter/yt-unsub.js
Unsubscribe from all YouTube channels on current page
var button = document.getElementsByClassName("subscribed-label");
for(var i=0;i<button.length;i++)
{
button[i].click();
var unsub = document.getElementsByClassName("overlay-confirmation-unsubscribe-button");
//console.log(unsub.length)
for(var j=0;j<unsub.length;j++)
unsub[j].click();
}
@seraph
seraph / config.fish
Created February 20, 2016 12:19
Working Fish shell config for nvm and rbenv support (with rbenv shell support)
# taken from https://github.com/rbenv/rbenv/pull/375
# and https://coderwall.com/p/6hja1w/rbenv-shell-and-fish
source ~/.config/fish/nvm-wrapper/nvm.fish
set PATH $HOME/.rbenv/bin $PATH
set -x PATH $HOME/.rbenv/shims $PATH
rbenv rehash >/dev/null ^&1
function rbenv_shell