These are generally trivial scripts but are used often enough that they save me some typing. In general this is a pretty poor representation of my scripts because I usually forget about this page.
This was a simple perl script that generates low quality random passwords. This was useful when I was a sysadmin and was constantly setting up new accounts.
import random
allowedChrs = ['!', '#', '$', '%', '&', '(', ')', '*', '+',
'-', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8',
'9', ':', '<', '=', '>', '?', '@', 'A', 'B', 'C', 'D', 'E',
'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', ']', '^', '_',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y']
challenge = map(lambda i: allowedChrs[ random.randint(0, len(allowedChrs)-1) ], range(16))
challenge = ''.join(challenge)
This short bash script recursively traverses a source tree and removes the CVS directories. This allows the sandbox to be severed from the original repository. It can then be imported into another repo or have other CVS modules laid over the top of it. Whenever possible you should use the
rather than this script but that is not always possible. I wrote this because I checked u-boot out of the public cvs repo and wanted to maintain a seperate branch for the project I was working on. I wasn't able to
u-boot so manually removing the CVS directories was my only option before it could be added to my
but I wanted something a little different.