Skip to content

Instantly share code, notes, and snippets.

@adRn-s
adRn-s / .screenrc
Last active December 1, 2023 13:05
gnu screen
# alias startship='screen -xRR adRn'
term screen-256color
hardstatus off
hardstatus firstline
hardstatus alwayslastline '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{= R}%n*%f %t%?%{= R}(%u)%?%{= w}%+Lw%?%= %{= g}][ %{y}Load: %l %{g}][%{B}%Y-%m-%d %{W}%c:%s %{g}]'
@adRn-s
adRn-s / git-patches-howto.sh
Last active November 14, 2023 09:17
Moving any commit (a diff-patch) throughout machines!
git apply --verbose 0001-name-your-file.patch
# Retrieving from different 'sources'
### from unstaged changes
git diff > 0001-name-your-file.patch
### from staged changes
git diff --cached > 0001-name-your-file.patch
@adRn-s
adRn-s / plink_gwas.patch
Last active August 19, 2022 09:57
snakemake wrapper to implement Plink association testing (gwas)