bash
-
latex -> text
$ catdvi -e 1 -U file.dvi | sed -re “s/\[U\+2022\]/*/g” | sed -re “s/([^^[:space:]])\s+/\1 /g” > file.txt from this link More details from the original poster: The -e 1 option to catdvi tells it to output ASCII. If you use 0 instead of 1, it will output Unicode. Unicode will include all the special characters… Continue reading
-
debian-multimedia GPG error
well I’ll see if this fixes the error that’s been breaking my nightly cron-apt. it doesn’t work. now just tried: if that works its definitely superior. Continue reading
-
How to keep less from clearing the screen
I was finally getting desperate with R’s history() command clearing my screen after showing me my history, totally useless. After some puttering around, i found that history() just ends up calling $PAGER, which for me was less. Typing h into history() confirmed that I was looking at less. So then googling how to get rid… Continue reading
-
smbclient, beamer, and pgfpages
A fierce battle to print slides for a poster. Continue reading
-
smbclient
I run on a Debian machine, and I’m in a Windows environment. So from time to time I have to map some share on a machine and upload or download some file. Every time I panic because I don’t remember how to do this smbclient stuff, so I’m just going to post it here. First,… Continue reading
-
cryptsetup and quickfix
Setting up cryptsetup on a thumbdrive, and quickfix for g++ on vim Continue reading
-
bash scripts for using git to sync laptops
using git for syncing laptops Continue reading
-
bash completion for vim and latex
I want bash to complete .tex whenever I type vim file. and there’s a file.tex in the directory. This was driving me nuts since it was completing all the LaTeX aux files etc whenever I did it, but I found (again) /etc/bash_completion which has the line complete -f -X ‘*.@(o|so|so.!(conf)|a|rpm|gif|GIF|jp?(e)g|JP?(E)G|mp3|MP3|mp?(e)g|MPG|avi|AVI|asf|ASF|ogg|OGG|class|CLASS)’ vi vim gvim rvim view… Continue reading