Skip to content

Instantly share code, notes, and snippets.

View leonrinkel's full-sized avatar

Leon Rinkel leonrinkel

View GitHub Profile
@leonrinkel
leonrinkel / yleon.zsh-theme
Created August 22, 2022 23:14
oh-my-zsh theme
PROMPT="%{$fg_bold[magenta]%}%m%{$reset_color%} "
PROMPT+="%(?:%{$fg_bold[green]%}∆ :%{$fg_bold[red]%}∆ )"
PROMPT+='%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
PROMPT+="%{$fg_bold[white]%}$%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@leonrinkel
leonrinkel / .vimrc
Last active October 15, 2023 17:17
" disable vi compatibility
set nocompatible
" enable mouse support
set mouse=a
" use utf-8 encoding
set encoding=utf-8
" highlight search matches
@leonrinkel
leonrinkel / gist:a874e1802648bf32e224c457b1b7221d
Created March 22, 2024 19:47
My personal Arch install instructions
# boot option override is F11 (on my system)
# disable windows fast startup to save a headache
# set keyboard layout
loadkeys de-latin1
# verify UEFI boot mode
cat /sys/firmware/efi/fw_platform_size
# verify connectivity
{
"ISDs" : [1],
"ASes" : [
{
"asn" : 101,
"isd" : 1,
"label" : "101",
"is_core_as" : true,
"kubos": 1,
"bwserver": true
@leonrinkel
leonrinkel / patch-initrd.sh
Created January 12, 2025 13:54
patch segmented initrd/initramfs
#!/bin/sh
# copied together from initramfs-tools
set -eu
# Read bytes out of a file, checking that they are valid hex digits
readhex()
{
dd < "$1" bs=1 skip="$2" count="$3" 2> /dev/null | \