Home: B79.net/about
John's miscellaneous code
Shell scripts
I wrote these scripts mostly to facilitate working in a screen session
running in a Linux Framebuffer console. For help/documentation, type the
name of the script without an argument. For scripts that function without an
argument, try the -h option, or just read the script.
txp
A utility for printing text files. Using enscript, the text is typeset to
PostScript in the Inconsolatas font, graphically previewed with fbgs, then
optionally printed or saved as a PDF file. Works in a screen session running in
a Linux framebuffer console. Capable of handling UTF-8 encoded text.
h2t
Convert an html file to formatted plain-text using elinks. Source html can
be a local file or a url from the net. The default is to save the converted
file in the /tmp directory and open it with with vim, at which point you can
view, edit, and if so desired, save it to a more permanent location.
ffbgs
View PDF and PostScript files in a screen session running in a
Linux framebuffer console.
ffbi
View images in a screen session running in a Linux framebuffer console.
ffbmplay
View movies in a screen session running in a Linux framebuffer console.
ffc
Invoke a command on all files under the working directory that end in
a given pattern, recursing into all sub-directories.
ffc-all
Invoke a command on all files under the working directory, recursing
into all sub-directories (use with caution!).
lati
A wrapper script for
words,
a Latin/English translation dictionary.
fbr
Rotate the display of a framebuffer console in 90 degree increments.
unfork
For accessing the resource fork of files in Apple's hfs+ filesystem.
url2txt
Convert Mac style (.webloc) web location files and PC style (.URL or .url) internet shortcut files to a simple text format
vim-vfu
When calling vim from within the vfu filemanager, avoid the
"Thanks for Flying Vim" in the title of GNU screen after quiting vim.
ctxt
For displaying the colors, color names and escape sequence of the 16 colors
viewable in the Linux console.
wiscan
A command line interface for scanning and listing available wifi
connections.
wifi
A command line interface for bringing up wifi connections.
bca
A wrapper for bc, providing a simple floating-point-capable command-line calculator.
Config Files
Below are my configuration files for some of the software I enjoy using.
It's all a work in progress, so they may be a bit jumbled. If any of the
keybindings look a bit odd, it's because I'm mostly using a Happy Hacking Pro
keyboard, and I've optimized the keybindings for how I use that layout.
vimrc
gvimrc
screenrc
zshrc
zshenv
vfu.conf
elinks.conf
mailcap
Xmodmap
Xresources
dir_colors
gtkrc
Misc.
stx2any.vim
A syntax file to colorize stx2any markup text in the Vim Text editor.
xo_textmode.txt
Some notes I took while setting up my XO laptop to run primarily in a
Linux framebuffer console.
|