Skip to content

Instantly share code, notes, and snippets.

View VonKavalier's full-sized avatar
🎩
Drinking coffee (this won't change)

Tom VonKavalier

🎩
Drinking coffee (this won't change)
View GitHub Profile
@VonKavalier
VonKavalier / config
Last active October 18, 2019 13:52
i3_config
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
# Remap prefix to screen {{{
set -g prefix C-a
bind C-a send-prefix
unbind C-b
# }}}
# Quality of life stuff {{{
set -g history-limit 10000
set -g allow-rename off
set -g mouse on
@VonKavalier
VonKavalier / .vimrc
Last active December 14, 2018 13:47
runtime! config/**/*.vim
" Features {{{
set nocompatible
filetype plugin indent on
syntax on
set encoding=utf-8
set cm=blowfish2
set formatoptions-=cro
" }}}
@VonKavalier
VonKavalier / .personal_aliases
Last active January 2, 2020 11:12
Some personal aliases that I don't want to forget
function transfer() {
if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile;
}
function youtube-download() {
youtube-dl -f '\''bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4'\ URL $1
return 0
}

Keybase proof

I hereby claim:

  • I am VonKavalier on github.
  • I am von_kavalier (https://keybase.io/von_kavalier) on keybase.
  • I have a public key whose fingerprint is 5DCB 18D0 C9F0 D65E AF31 E23B E38C 0D05 0D51 722D

To claim this, I am signing this object: