Skip to content

Instantly share code, notes, and snippets.

View Defelo's full-sized avatar
🏳️‍🌈

Felix Bargfeldt Defelo

🏳️‍🌈
View GitHub Profile
#!/bin/bash
# install via ./pre-commit.sh install
SELF=$(realpath $0)
SRC=$(realpath pre-commit.sh)
_HOOK=$(git rev-parse --git-path hooks)/pre-commit
HOOK=$(realpath $_HOOK)
install() {

Arch Linux Installation Guide (UEFI + Secure Boot + Full Disk Encryption)

Download Arch Linux ISO

  1. Download *.iso and *.iso.sig from https://archlinux.org/download/
  2. Verify sha256
  3. Verify signature: gpg --keyserver-options auto-key-retrieve --verify *.iso.sig

Create Virtual Machine in virt-manager (optional)

  • Firmware: OVMF_CODE.secboot.fd
  • Add TPM v2
#!/bin/bash
set -ex
VERSION=${1:-equuleus}
ARCH=${2:-amd64}
d=$(pwd)
t=$(mktemp -d)
cd $t
#!/usr/bin/env bash
set -ex
mkdir -p ~/.local/share/lunarvim
git clone --branch release-1.2/neovim-0.8 https://github.com/lunarvim/lunarvim.git ~/.local/share/lunarvim/lvim
mkdir -p ~/.local/bin
cat << 'EOF' > ~/.local/bin/lvim
#!/usr/bin/env bash
#dashboard h2.my-2,
div[data-target="get-repo.copilotTip"],
div.Box-sc-g0xbh4-0 > button[data-testid='copilot-popover-button'],
.copilotPreview__container,
#copilot-floating-button,
.AppHeader-CopilotChat,
form p:has([data-hovercard-type=copilot]),
.select-menu-list [data-filterable-for=review-filter-field] label:has(input[value='175728472']),
div.Box-sc-g0xbh4-0.biWYdz,
div:has(> react-partial[partial-name=copilot-code-chat]),