Skip to content

Instantly share code, notes, and snippets.

View adamheinrich's full-sized avatar

Adam Heinrich adamheinrich

View GitHub Profile
@adamheinrich
adamheinrich / crlf.screenrc
Created April 3, 2020 10:13 — forked from cabo/crlf.screenrc
Make GNU screen convert return key (CR) into CR-LF
# put this in your ~/.screenrc to make
# ^A D (uppercase) switch on, and
# ^A U (uppercase) switch off, converting
# CR (return keys) input into CRLF
bind D bindkey "\015" stuff "\015\012"
bind U bindkey "\015" stuff "\015"
@adamheinrich
adamheinrich / luks.md
Last active December 9, 2019 11:35 — forked from talaj/luks.md
Accessing an encrypted full disc image (LUKS;LVM)
@adamheinrich
adamheinrich / kicad-git.txt
Created April 12, 2018 14:51
KiCad and git
To stage changes while ignoring whitespace (inspired by [1]):
git diff -w --no-color | (read in; [ -n "$in" ] && git apply --cached --ignore-whitespace)
[1]: https://til.hashrocket.com/posts/696df00135-remove-whitespace-changes-then-git-add-p