This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
### Packages, kernel, systemd ### | |
# Fix cloudflare postrm | |
if [[ -f /var/lib/dpkg/info/cloudflared.postrm ]]; then | |
cat <<-EOF > /var/lib/dpkg/info/cloudflared.postrm | |
#!/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theme = "fleet_dark_transparent" | |
[editor] | |
auto-format = true | |
auto-save = true | |
color-modes = true | |
cursorcolumn = true | |
cursorline = true | |
true-color = true | |
line-number = "relative" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if status is-interactive | |
# Commands to run in interactive sessions can go here | |
set -x PYENV_ROOT $HOME/.pyenv | |
fish_add_path -a $PYENV_ROOT/bin | |
fish_add_path -a $HOME/.cargo/bin | |
fish_add_path -a $HOME/go/bin | |
starship init fish | source | |
pyenv init - | source | |
pyenv virtualenv-init - | source | |
abbr -a ip ip -c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Abbreviations | |
### | |
a(ddr) | |
l(ink) | |
r(oute) | |
n(eighbor) | |
ru(le) | |
net(ns) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Initialize starship in shell config | |
### | |
# Fish | |
starship init fish | source | |
# Bash | |
eval "$(starship init bash)" | |
# Zsh | |
eval "$(starship init zsh)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n s t h a e i o | |
Spc Shift | |
● j x w - = [ ] | |
j ● m c v k ` ; | |
x m ● d b g z / | |
w c d ● f p q ' | |
- v b f ● r l y | |
= k g p r ● u , |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defcfg | |
process-unmapped-keys yes | |
windows-altgr cancel-lctl-press | |
) | |
(defsrc | |
grv 1 2 3 4 5 6 7 8 9 0 - = bspc | |
tab q w e r t y u i o p [ ] \ | |
caps a s d f g h j k l ; ' ret | |
lsft z x c v b n m , . / rsft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import itertools | |
def same_finger(ngram): | |
fingers = 0 | |
for chord in ngram: | |
if chord & fingers: | |
return False | |
fingers |= chord |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
q v w m j z f u x ; | |
i s r t g p n e a o | |
y c l d k b h ' , . / | |
q v w m j z f ' . x | |
i s r t g p n e a o | |
y c l d k b h u , ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noremap f e | |
noremap p r | |
noremap b t | |
noremap j y | |
noremap l u | |
noremap u i | |
noremap y o | |
noremap ' p | |
noremap r s | |
noremap s d |
NewerOlder