random (unix) crap
[home] [search

All this is mostly of historic interest. (I am not sure what this exactly means, but people usually say so when they want to prevent some old garbage...)


GAP

examples of Lie algebras manipulations in GAP (Feb 19 2005)

utilities

checkp: checks whether either of parents of the current process matches given regexp (handy in determining whether running under X, for example; Aug 20 2005, home)
cuckoo.sh: sh cuckoo clock (Oct 22 1998, EIT)
cpp2xsl: adds C preprocessor directives to XSLT (Aug 29 2002, ING)
dir2tarbz: bash script archiving directory to tar.bz2 (Oct 7 2000, home; requires /usr/local/lib/sh/functions)
debase64: perl script doing base64 decoding (Jan 4 2000, home)
dummy_server: listens on given tcp port (Aug 24 2005, Zend; stolen from Perl Cookbook)
far2cel: Fahrenheit to Celsius converter (Oct 7 2007, home)
filext: extract file extension from file name (Apr 23 1998, home)
getmntent.c: command-line wrapper for getnmntent() (works on Solaris) (Jan 3 1999, EIT)
lstime: get mtime, atime and ctime of a file (Aug 18 1999, EIT)
sizeof: sizeof's (Nov 4 2007)
test-syslog.c: test whether syslog facility is working (Jun 17 2002, ING)
tolower: renames file to lower case (Nov 2 1998, home)
tree-compare: compare two directory trees (Feb 7 1999, EIT)
userexists: check whether given user exists (Dec 15 1998, EIT)

omnibus - supposed to collect stock prices from the web

Also example of local web caching. Unfinished and semi-working. Circa end of 2003.

realcd - make windows cdrom more unix-readable

Here is a quick dirty solution for situation many people confronted with when trying to install Linux via NFS in a (harsh) m$ environment, or for some other reason want to read ISO9660 cdrom NFS-mounted from windoze. The problem is that the latter does not undertsand Rockridge extension and see only these crappy dos-style 8.3 upper-cases names. Here is a perl script which goes recursively (optional) through directories on cd, consults in each directory file TRANS.TBL and creates a parallel directory three with symbolic links which are normal unix long names.
Usage: realcd -h prints a short help message.
Written in perl. Tested on Linux 2.0.20 with perl 5.003 and on NT 4.0 with perl 5.003_007 (ActiveWare port; no symlinks, just copy, of course). Last updated June 12, 1998.

Mailer - simple SMTP client

Well, it seems that everyone with java compiler wrote his own program which sends emails, and I could not resist too. There is class Mailer whose usage is clear from attached Test.java source file and front-end to it - GUIMailer.
Tested on NT 4.0 with jdk 1.2beta as standalone utility and on IIS 3.0 with ASP 1.0 as server-side component. Last updated February 21, 1998.

JPEGFile, GIFFile - get jpeg and gif file specs

I wrote this when was in the need to produce automatically IMAGE tag attributes for a web site (it used as ASP(spit, spit!) server-side components). These are actually two java classes (with two another helper classes) with methods getSize(), getWidth() and getHeight(). The only more or less non-trivial thing here - JPEGFile.class - is merely port/adaptation of appropriate C code from jpeg-6a package of Independent JPEG Group.
Tested on NT 4.0 and MacOS with jdk 1.1.4 as standalone utility and on IIS 3.0 with ASP 1.0 as server-side component. Last updated November 12, 1997. __END__

created Oct 28 2000
last updated Sat May 31 10:07:51 GMT 2008