dot

packages and services management
Log | Files | Refs | README

commit b19debc264bac7a29b21fb406525ade319e5ecf1
parent e35b0d1cd8f297e6ca4527a7ba2b1b1b8305bfb5
Author: josuah <mail@josuah.net>
Date:   Sat, 17 Sep 2016 08:29:20 -0400

Simplification and improvements

Diffstat:
Mbin/.cache/bkm | 172++++++++++++++++++++++++++++++++++++++++---------------------------------------
Mshell/.profile | 67+++++++++++++++++++++++++++++++++++++++++++++++++------------------
Mvim/.vimrc | 55+++++++++++++++++++++----------------------------------
3 files changed, 157 insertions(+), 137 deletions(-)

diff --git a/bin/.cache/bkm b/bin/.cache/bkm @@ -1,85 +1,86 @@ -BIOINFORMATICS Licence pro Vannes http://www.iutvannes.fr/licence-professionnelle-statistique-informatique-sante-morbihan -BIOLOGY Methodologies for C. elegans http://www.irsn.fr/EN/Research/Theses-post-docs/Theses/Defended-thesis/DEI/Documents/2014-These-Buisset-Goussen.pdf -BOOKS Library Genesis http://gen.lib.rus.ec -EMACS Emacs animations http://blog.josephwilk.net/art/emacs-animation.html -EMACS Fancy mail spliting http://sachachua.com/blog/2008/05/emacs-gnus-organize-your-mail -EMACS French emacs blog http://foudil.fr/blog -EMACS Gnus setup http://codingquark.com/setting-up-gnus-in-emacs -EMACS Hacking definition http://nic.ferrier.me.uk -EMACS Next emacs hangout http://sachachua.com/blog/tag/emacs-hangout -EMACS Org-mode pretty outlines http://clubctrl.com/org/prog/howto.html -EMACS Sacha chua's emacs.d http://pages.sachachua.com/.emacs.d/Sacha.html -EQUIPEMENT Self-locking knots with 2 carabiners http://blcanyon2.free.fr/noeuds/noeuds_autobloquants.html -FOLKS 2f30 http://2f30.org -FOLKS 6c37 http://6c37.org -FOLKS arcetera https://arcetera.moe/git/bin/files.html -FOLKS c2 http://c2.com/cgi/wiki?PdfSucks -FOLKS cat-v http://cat-v.org -FOLKS dcat https://github.com/dcat -FOLKS fancy theme https://pi314.github.io -FOLKS hiltjo http://git.codemadness.nl -FOLKS iotek https://iotek.org/src -FOLKS rcr - rirc author http://rcr.io -FOLKS suckless.org http://suckless.org -FOLKS venam http://venam.nixers.net/blog -FOLKS wildefyr http://wildefyr.net -FOLKS xero http://xero.nu -FOLKS ypnose http://ywstd.fr -FOLKS z3bra http://z3bra.org -FOLKS zx2c4 https://www.zx2c4.com/ -FONTS Old computer fonts that xero likes http://int10h.org/ -LINUX Console character set https://en.wikipedia.org/wiki/Code_page_437 -LINUX Crux iso http://ftp.morpheus.net/pub/linux/crux/crux-3.2/iso -LINUX POSIX standard http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html -LINUX Void Linux http://www.voidlinux.eu -LINUX systemd situation overview http://uselessd.darknedgy.net/ProSystemdAntiSystemd/ -MATHS How to read a math book http://math.stackexchange.com/a/279125 -MOVIES Ergo Proxy http://www.imdb.com/title/tt0791205/ -MOVIES Ex_Machina http://www.imdb.com/title/tt0470752/ -MOVIES Ghost in the shell 2 http://www.imdb.com/title/tt1260502/ -MOVIES Ghost in the shell Arise http://www.funimation.com/shows/ghost-in-the-shell-arise/home -MOVIES Morgan http://www.imdb.com/title/tt4520364/ -MOVIES Serei no moribito https://en.wikipedia.org/wiki/Moribito:_Guardian_of_the_Spirit -MOVIES Who Am I - No System is safe http://www.imdb.com/title/tt3042408/ -MUSIC Algorithmic music http://countercomplex.blogspot.fr/2011/10/algorithmic-symphonies-from-one-line-of.html -NEWS Amnesty https://en.m.wikipedia.org/wiki/Criticism_of_Amnesty_International -NEWS Confusion http://mashable.com/2015/11/16/canadian-sikh-veerender-jubbal-photoshop -NEWS US drone strikes to pakistan school http://tribune.com.pk/story/229844/the-day-69-children-died -PRIVACY Tor, a NSA company https://pando.com:443/2014/07/16/tor-spooks/ -PROGRAMMING CSS borders http://cssnerd.com/2012/01/07/overlapping-transparent-divs-with-one-border -PROGRAMMING Clojure intro for pythonistas http://www.pixelmonkey.org/2014/11/02/clojonic -PROGRAMMING Clojure-java interaction http://stackoverflow.com/questions/5821286/how-can-i-get-the-methods-of-a-java-class-from-clojure -PROGRAMMING Comparing programming languages http://hyperpolyglot.org -PROGRAMMING Learn C programming http://c.learncodethehardway.org/book/ -PROGRAMMING Regular expression comparisons http://www.greenend.org.uk/rjk/tech/regexp.html -PROGRAMMING Rosetta Code http://rosettacode.org -RICING Colour palettes http://www.xcolors.net -RICING Many themes ideas http://daylerees.github.io -RICING blue & clean tmux.conf http://i.imgur.com/s1xvGeJ.png -SOFTWARE C programming whispers https://www.youtube.com/watch?v=v_HP6zwhT1A&index=2&list=PLPt8EM4KxGEVdozTFQ_taOdS6OFlNU7ki -SOFTWARE Tox secure chat https://tox.chat -SOFTWARE icat https://github.com/atextor/icat -SOFTWARE jo https://github.com/jpmens/jo -SOFTWARE mail http://blog.z3bra.org/2013/11/plain-old-mails.html -SOFTWARE ratox http://ratox.2f30.org -STATISTICS Types de tests statistiques http://marne.u707.jussieu.fr/biostatgv/?module=tests -STUDIES big data http://www.huffingtonpost.fr/claude-huriet/sante-big-data_b_9869208.html -SYSTEMS Apple ][ emulator in javascript http://skn.noip.me/pdp11/pdp11.html -SYSTEMS UNIX emulator in javascript http://skn.noip.me/pdp11/pdp11.html -TEXT ASCII math http://math.stackexchange.com/q/149303 -TOOLBOX BSD http://openbsd.net -TOOLBOX asmutils http://asm.sourceforge.net/asmutils.html -TOOLBOX busybox http://www.busybox.net -TOOLBOX echo.c implementations https://gist.github.com/dchest/1091803 -TOOLBOX heirloom http://heirloom.sourceforge.net -TOOLBOX iu-coreutils https://github.com/joshhartigan/iu-coreutils -TOOLBOX sbase/ubase http://core.suckless.org -TOOLBOX toybox http://www.landley.net/toybox -VIM Vanilla vim tricks https://www.reddit.com/r/vim/comments/4gjbqn/what_tricks_do_you_use_instead_of_popular_plugins/ -VIM Visual + macros https://github.com/stoeffel/.dotfiles/blob/master/vim/visual-at.vim -PROGRAMMING C programming book http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf -PROGRAMMING API of many websites. https://temboo.com/library/Library/Google/Gmailv2/ -LINUX Screenshots from developers & Unix people (2002) https://anders.unix.se/2015/10/28/screenshots-from-developers--unix-people-2002/ -MUSIC Artistic website, with wired music http://fauux.neocities.org/ -MUSIC Artistic website with wired music http://fauux.neocities.org/ -STUDIES APF classes notes and documents http://etudiant.istic.univ-rennes1.fr/current/l1l2/apf/ +BIOINFORMATICS Licence pro Vannes http://www.iutvannes.fr/licence-professionnelle-statistique-informatique-sante-morbihan +BIOLOGY Methodologies for C. elegans http://www.irsn.fr/EN/Research/Theses-post-docs/Theses/Defended-thesis/DEI/Documents/2014-These-Buisset-Goussen.pdf +BOOKS Library Genesis http://gen.lib.rus.ec +EMACS Emacs animations http://blog.josephwilk.net/art/emacs-animation.html +EMACS Fancy mail spliting http://sachachua.com/blog/2008/05/emacs-gnus-organize-your-mail +EMACS French emacs blog http://foudil.fr/blog +EMACS Gnus setup http://codingquark.com/setting-up-gnus-in-emacs +EMACS Hacking definition http://nic.ferrier.me.uk +EMACS Next emacs hangout http://sachachua.com/blog/tag/emacs-hangout +EMACS Org-mode pretty outlines http://clubctrl.com/org/prog/howto.html +EMACS Sacha chua's emacs.d http://pages.sachachua.com/.emacs.d/Sacha.html +EQUIPEMENT Self-locking knots with 2 carabiners http://blcanyon2.free.fr/noeuds/noeuds_autobloquants.html +FOLKS 2f30 http://2f30.org +FOLKS 6c37 http://6c37.org +FOLKS arcetera https://arcetera.moe/git/bin/files.html +FOLKS c2 http://c2.com/cgi/wiki?PdfSucks +FOLKS cat-v http://cat-v.org +FOLKS dcat https://github.com/dcat +FOLKS fancy theme https://pi314.github.io +FOLKS hiltjo http://git.codemadness.nl +FOLKS iotek https://iotek.org/src +FOLKS rcr - rirc author http://rcr.io +FOLKS suckless.org http://suckless.org +FOLKS venam http://venam.nixers.net/blog +FOLKS wildefyr http://wildefyr.net +FOLKS xero http://xero.nu +FOLKS ypnose http://ywstd.fr +FOLKS z3bra http://z3bra.org +FOLKS zx2c4 https://www.zx2c4.com/ +FONTS Old computer fonts that xero likes http://int10h.org/ +LINUX Console character set https://en.wikipedia.org/wiki/Code_page_437 +LINUX Crux iso http://ftp.morpheus.net/pub/linux/crux/crux-3.2/iso +LINUX POSIX standard http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html +LINUX Screenshots from developers & Unix people (2002) https://anders.unix.se/2015/10/28/screenshots-from-developers--unix-people-2002/ +LINUX Void Linux http://www.voidlinux.eu +LINUX systemd situation overview http://uselessd.darknedgy.net/ProSystemdAntiSystemd/ +MATHS How to read a math book http://math.stackexchange.com/a/279125 +MOVIES Ergo Proxy http://www.imdb.com/title/tt0791205/ +MOVIES Ex_Machina http://www.imdb.com/title/tt0470752/ +MOVIES Ghost in the shell 2 http://www.imdb.com/title/tt1260502/ +MOVIES Ghost in the shell Arise http://www.funimation.com/shows/ghost-in-the-shell-arise/home +MOVIES Morgan http://www.imdb.com/title/tt4520364/ +MOVIES Serei no moribito https://en.wikipedia.org/wiki/Moribito:_Guardian_of_the_Spirit +MOVIES Who Am I - No System is safe http://www.imdb.com/title/tt3042408/ +MUSIC Algorithmic music http://countercomplex.blogspot.fr/2011/10/algorithmic-symphonies-from-one-line-of.html +MUSIC Artistic website with wired music http://fauux.neocities.org/ +MUSIC Artistic website, with wired music http://fauux.neocities.org/ +NEWS Amnesty https://en.m.wikipedia.org/wiki/Criticism_of_Amnesty_International +NEWS Confusion http://mashable.com/2015/11/16/canadian-sikh-veerender-jubbal-photoshop +NEWS US drone strikes to pakistan school http://tribune.com.pk/story/229844/the-day-69-children-died +PRIVACY Tor, a NSA company https://pando.com:443/2014/07/16/tor-spooks/ +PROGRAMMING API of many websites. https://temboo.com/library/Library/Google/Gmailv2/ +PROGRAMMING C programming book http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf +PROGRAMMING CSS borders http://cssnerd.com/2012/01/07/overlapping-transparent-divs-with-one-border +PROGRAMMING Clojure intro for pythonistas http://www.pixelmonkey.org/2014/11/02/clojonic +PROGRAMMING Clojure-java interaction http://stackoverflow.com/questions/5821286/how-can-i-get-the-methods-of-a-java-class-from-clojure +PROGRAMMING Comparing programming languages http://hyperpolyglot.org +PROGRAMMING Learn C programming http://c.learncodethehardway.org/book/ +PROGRAMMING Regular expression comparisons http://www.greenend.org.uk/rjk/tech/regexp.html +PROGRAMMING Rosetta Code http://rosettacode.org +RICING Colour palettes http://www.xcolors.net +RICING Many themes ideas http://daylerees.github.io +RICING blue & clean tmux.conf http://i.imgur.com/s1xvGeJ.png +SOFTWARE C programming whispers https://www.youtube.com/watch?v=v_HP6zwhT1A&index=2&list=PLPt8EM4KxGEVdozTFQ_taOdS6OFlNU7ki +SOFTWARE Tox secure chat https://tox.chat +SOFTWARE icat https://github.com/atextor/icat +SOFTWARE jo https://github.com/jpmens/jo +SOFTWARE mail http://blog.z3bra.org/2013/11/plain-old-mails.html +SOFTWARE ratox http://ratox.2f30.org +STATISTICS Types de tests statistiques http://marne.u707.jussieu.fr/biostatgv/?module=tests +STUDIES APF classes notes and documents http://etudiant.istic.univ-rennes1.fr/current/l1l2/apf/ +STUDIES Good lecture notes on scheme! http://web.cs.wpi.edu/~cs1102/a08/Lectures/ +STUDIES big data http://www.huffingtonpost.fr/claude-huriet/sante-big-data_b_9869208.html +SYSTEMS Apple ][ emulator in javascript http://skn.noip.me/pdp11/pdp11.html +SYSTEMS UNIX emulator in javascript http://skn.noip.me/pdp11/pdp11.html +TEXT ASCII math http://math.stackexchange.com/q/149303 +TOOLBOX BSD http://openbsd.net +TOOLBOX asmutils http://asm.sourceforge.net/asmutils.html +TOOLBOX busybox http://www.busybox.net +TOOLBOX echo.c implementations https://gist.github.com/dchest/1091803 +TOOLBOX heirloom http://heirloom.sourceforge.net +TOOLBOX iu-coreutils https://github.com/joshhartigan/iu-coreutils +TOOLBOX sbase/ubase http://core.suckless.org +TOOLBOX toybox http://www.landley.net/toybox +VIM Vanilla vim tricks https://www.reddit.com/r/vim/comments/4gjbqn/what_tricks_do_you_use_instead_of_popular_plugins/ +VIM Visual + macros https://github.com/stoeffel/.dotfiles/blob/master/vim/visual-at.vim test test+ \ No newline at end of file diff --git a/shell/.profile b/shell/.profile @@ -81,6 +81,28 @@ alias xo='DISPLAY=:0 xclip -o | xargs' alias xi='DISPLAY=:0 xclip -i' +# VARIABLES +#------------------------------------------------------------------------------- + +solarized_light="\ +\033]P0ffddbb \033]P1d0154b \033]P2779900 \033]P3ffa700\ +\033]P4096daf \033]P5897f74 \033]P600aa88 \033]P7000000\ +\033]P8bb9988 \033]P9d0154b \033]PA779900 \033]PBffa700\ +\033]PC096daf \033]PD897f74 \033]PE00aa88 \033]PF222222" + +ghost_in_the_shell="\ +\033]P0000000 \033]P191265C \033]P2439a64 \033]P3ccdd66\ +\033]P455aaaa \033]P5516583 \033]P64a8f86 \033]P799bbbb\ +\033]P8334444 \033]P9E71E5B \033]PA72f4a0 \033]PBf5ff8B\ +\033]PC99bbff \033]PD676cb0 \033]PE00ffff \033]PFffffff" + +coal="\ +\033]P0000000 \033]P1ee3333 \033]P2ccee44 \033]P3ffcc55\ +\033]P477aaaa \033]P5888888 \033]P655ee99 \033]P7cccccc\ +\033]P8555555 \033]P9ff6666 \033]PAeeff66 \033]PBffff99\ +\033]PCaaddff \033]PDaaaaaa \033]PE99ffbb \033]PFffffff" + + # FUNCTIONS #------------------------------------------------------------------------------- @@ -132,7 +154,7 @@ h() light() { - sudo printf '%s\n' "$1" | sudo tee "$( + printf '%s\n' "$1" | sudo tee "$( sudo find -L /sys/class/backlight/ -maxdepth 2 -name brightness )" } @@ -221,27 +243,36 @@ fbv() -f fbdev /dev/fb0 } +# +# Prevent scaring people with a monospace black term +# +day() +{ + printf "$solarized_light" + setfont LatGrkCyr-12x22.psfu.gz + clear +} -# TTY SETUP -#------------------------------------------------------------------------------- +night() +{ + printf "$coal" + setfont + clear +} -solarized_light="\ -\033]P0ffddbb \033]P1d0154b \033]P2779900 \033]P3ffa700\ -\033]P4096daf \033]P5897f74 \033]P600aa88 \033]P7000000\ -\033]P8bb9988 \033]P9d0154b \033]PA779900 \033]PBffa700\ -\033]PC096daf \033]PD897f74 \033]PE00aa88 \033]PF222222" +rotate() +{ + case "$1" in + u | up ) printf 0 ;; + r | right ) printf 1 ;; + d | down ) printf 2 ;; + l | left ) printf 3 ;; + esac | sudo tee /sys/class/graphics/fbcon/rotate_all +} -ghost_in_the_shell="\ -\033]P0000000 \033]P191265C \033]P2439a64 \033]P3ccdd66\ -\033]P455aaaa \033]P5516583 \033]P64a8f86 \033]P799bbbb\ -\033]P8334444 \033]P9E71E5B \033]PA72f4a0 \033]PBf5ff8B\ -\033]PC99bbff \033]PD676cb0 \033]PE00ffff \033]PFffffff" -coal="\ -\033]P0000000 \033]P1ee3333 \033]P2ccee44 \033]P3ffcc55\ -\033]P477aaaa \033]P5888888 \033]P655ee99 \033]P7cccccc\ -\033]P8555555 \033]P9ff6666 \033]PAeeff66 \033]PBffff99\ -\033]PCaaddff \033]PDaaaaaa \033]PE99ffbb \033]PFffffff" +# TTY SETUP +#------------------------------------------------------------------------------- if [ "$TERM" = 'linux' ] then diff --git a/vim/.vimrc b/vim/.vimrc @@ -12,29 +12,14 @@ set autoindent copyindent " Indentation set laststatus=0 " Status set smartcase ignorecase " Case -set hlsearch showmatch " Highlight +set showmatch " Highlight set list listchars=tab::\ ,trail:.,nbsp:.,extends:>,precedes:< " Listchars set ruler rulerformat=%40(%#Ruler#\ %t%4m%=%l,%-7(%c%V%)%4P\ %*%) set number numberwidth=4 cursorline nowrap " Interface set scrolloff=3 " Scroll set backupdir=~/.cache/vim// directory=~/.cache/vim// " Backup, cache set virtualedit=block - - -" FUNCTIONS -"------------------------------------------------------------------------------- - -function! FzyCommand(choice_command, vim_command) - try - let output = system(a:choice_command . " | fzy ") - catch /Vim:Interrupt/ - " Swallow errors from ^C, allow redraw! below - endtry - redraw! - if v:shell_error == 0 && !empty(output) - exec a:vim_command . ' ' . output - endif -endfunction +set formatprg=fmt " MAPPINGS @@ -42,29 +27,31 @@ endfunction let mapleader = ' ' -map <leader> : -map <leader><leader> : -map <leader>s :set -map <leader>w :w<cr> -map <leader>e :call FzyCommand("find -type f", ":e")<cr> -map <leader>v :call FzyCommand("find -type f", ":vs")<cr> -map <leader>/ :exec ':' system("swiper '" . expand("%:p") . "'")<cr>:redraw!<cr> +nmap <leader> : +nmap <leader><leader> : +nmap <leader>s :set +nmap <leader>w :w<cr> +nmap <leader>/ :exec ':' . system("swiper '" . expand("%:p") . "'") \| redraw!<cr> + +nmap col :set list !<cr> :set list ?<cr> +nmap con :set number !<cr> :set number ?<cr> +nmap cop :set paste !<cr> :set paste ?<cr> +nmap coh :set hlsearch !<cr> :set hlsearch ?<cr> +nmap cov :set ve=<c-r>=(&ve =~# "all") ? 'block' : 'all'<cr><cr>:set ve ?<cr> +nmap cot :set tw=<c-r>=(&tw =~# "80" ) ? '0' : '80' <cr><cr>:set tw ?<cr> -map col :set list !<cr> :set list ?<cr> -map con :set number !<cr> :set number ?<cr> -map cop :set paste !<cr> :set paste ?<cr> -map coh :set hlsearch !<cr> :set hlsearch ?<cr> -map cov :set <c-r>=(&ve =~# "all") ? 've=block' : 've=all'<cr><cr> :set ve ?<cr> +nmap [<leader> mzO<Esc>k`z<C-e> +nmap ]<leader> mzo<Esc>k`z -map ]<leader> mzo<Esc>k`z -map [<leader> mzO<Esc>k`z<C-e> +" Parentheses +vmap <leader>p myomzr\|`zr\`yr/ " ABBREVIATIONS "------------------------------------------------------------------------------- -iabbrev -_ <Esc>v0x80a-<esc>gvpA -iabbrev =_ <Esc>v0x80a=<esc>gvpA +iabbrev -_ <Esc>a-<Esc>:set ve=all<CR>v080lhr-:set ve=block<CR>A +iabbrev =_ <Esc>a=<Esc>:set ve=all<CR>v080lhr=:set ve=block<CR>A " HIGHLIGHTS @@ -76,7 +63,7 @@ highlight Cursorline cterm=bold highlight Ruler cterm=reverse ctermfg=3 highlight StatusLine cterm=bold ctermfg=3 highlight StatusLineNC cterm=bold ctermfg=7 -highlight VertSplit cterm=none +highlight VertSplit cterm=none ctermfg=7 ctermbg=7 " AUTOCOMMANDS