Small scripts I have found useful.
Use /dev/random to generate random password of arbitrary length. For example,
genpasswd 25
generates a password of 25 characters. If no number is specified, it generates 8 characters.
Generates a man
page in HTML
format and shows it in the default web browser. For example,
man2browser 3 printf
shows the page for printf
on section 3. Section is optional.
Create a VimBall from command line. Useful for Vim scripts published on GitHub and ready for installation tools like Pathogen and Vundle.
Just cd
to the git repository and execute
mkvimball [name]
If name
is specified, that will be the name of the generated file. Otherwise, the current directory's base name will be used.
Vim-based version of less
. It uses the script located under "$VIMRUNTIME/macors/less.sh
", part of any standard Vim installation.