Skip to content

Instantly share code, notes, and snippets.

View Apsu's full-sized avatar

Eve Apsu

  • Lambda Labs
  • Pittsburgh, PA
View GitHub Profile
@Apsu
Apsu / config.toml
Last active May 22, 2024 14:57
Helix config
theme = "fleet_dark_transparent"
[editor]
auto-format = true
auto-save = true
color-modes = true
cursorcolumn = true
cursorline = true
true-color = true
line-number = "relative"
@Apsu
Apsu / config.fish
Created May 17, 2024 20:53
Fish config
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
@Apsu
Apsu / iproute.sh
Created May 17, 2024 20:51
iproute
###
# Abbreviations
###
a(ddr)
l(ink)
r(oute)
n(eighbor)
ru(le)
net(ns)
@Apsu
Apsu / starship.sh
Created May 17, 2024 20:37
Starship
###
# Initialize starship in shell config
###
# Fish
starship init fish | source
# Bash
eval "$(starship init bash)"
# Zsh
eval "$(starship init zsh)"
@Apsu
Apsu / mapping.txt
Last active November 21, 2023 07:15
Asetnioptimized
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 ,
@Apsu
Apsu / kanata.kbd
Last active June 3, 2023 04:38
Kanata keyboard def
(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
@Apsu
Apsu / chords.py
Last active July 13, 2021 09:34
5 Finger Chord Sequences With No Finger Reuse
#!/usr/bin/env python3
import itertools
def same_finger(ngram):
fingers = 0
for chord in ngram:
if chord & fingers:
return False
fingers |= chord
@Apsu
Apsu / qvwmj.txt
Last active May 8, 2021 08:51
QVWMJ
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 , ;
@Apsu
Apsu / vimrc
Created April 25, 2021 15:40
Colemak DHm vim remap
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
@Apsu
Apsu / v4.json
Created April 17, 2021 19:15
Planck v4
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"planck/rev6","keymap":"v4","layout":"LAYOUT_ortho_4x12","layers":[["KC_ESC","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_BSPC","KC_TAB","KC_A","KC_S","KC_D","KC_F","KC_G","KC_H","KC_J","KC_K","KC_L","KC_QUOT","KC_ENT","KC_LCTL","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_N","KC_M","KC_LEFT","KC_DOWN","KC_UP","KC_RGHT","MO(3)","KC_DEL","KC_INS","KC_LALT","KC_LGUI","KC_LSFT","KC_SPC","MO(2)","KC_HOME","KC_PGDN","KC_PGUP","KC_END"],["KC_ESC","KC_Q","KC_W","KC_F","KC_P","KC_B","KC_J","KC_L","KC_U","KC_Y","KC_QUOT","KC_BSPC","KC_TAB","KC_A","KC_R","KC_