CGI and other scripts

These are some odd cgi or other (mostly perl) scripts that I have wrote. It is freely distributable for personal use, and comes with no warranty.

You are the Nth visitor since Jul 3 1998.

  1. ycq.tcl: Tcl/Tk script to show a GUI window with list of nicely formatted rwho results to track who's logged on and how long they have been idle.
    Supports two seperate lists, Long and Short associated with two buttons. Displays those in the list with less than n hours of idle time. This n can be changed by pressing on [+] (to increase) or [-] (to decrease) the value.

    It doesn't automatically update the content, so you have to click on the [Long] or [Short] button to update the content.

    Edit the script to customize:

    • Long and Short list containing usernames.
    • Initial n
    • Window size
    • Font

    See the section in the beginning marked CONFIG in the script.

    * ycq (Yoonsuck Seeks You) has nothing to do with ICQ. ;-)

  2. jpegtothumb: shell script to generate jpeg thumbnail images from original images.
    usage: jpegtothumb <scale> <file(s)> <scale> : a value between 0.0 and 1.0. For example, 0.1 is 10% of the original size <file(s)> : a list of files, or a single file. input: an ordinary jpeg file output: thumbnail image (jpeg format) filename.jpg will result in filename-t.jpg This program requires: djpeg and cjpeg : libjpeg (rpm or installed from source) pnmscale : libgr-progs (rpm) or netpbm installed from source Example usage: jpegtothumb 0.2 file1.jpg file2.jpg -> 20% sized thumbnails of file1.jpg and file2.jpg jpegtothumb 0.1 *.jpg -> 10% sized thumbnails of all jpeg files in the directory
  3. fixperm.pl: Fix permission and ownership of downloaded Redhat Linux distro.
    *NOTICE* use the revised version by Jon Svejgaard: fixmog v2.1 (updated 12/23/2000)

    Using the 'ls-lR' file from Redhat Linux ftp sites, fix ownership and permission bits of downloaded files and directories so that a CD burned from an iso image of the distribution tree actually works.

    It is also able to check for missing files or files with different sizes than what is specified in the 'ls-lR' file. Read the usage included in the script, or say `./fixperl.pl --help`.

    I ran this script on a Redhat6.2 distribution and the burned CD worked well -- I did both upgrade and a fresh install on two different machines without a glitch.

    After writing this script, I discovered that there is a C program doing exactly the same thing: fix-rhcd. Check it out also.

  4. tclcal: Calendar application written in Tcl/Tk.

    . Color and size are configurable. Appearance is similar to KDE knotes. Previous and next month buttons and quit button provided. Window appears without window manager decorations, and can be moved around by clicking and dragging on the title bar.

    Screenshots:

       
  5. yimage: A GNU Octave module for displaying matrices in various colormaps. Click on the link for example images, and links to the README file and the tar.gz file for download.

  6. nometa : A web proxy that gets rid of all Microsoft Frontpage etc.'s <meta ...> tags (especially the ever-annoying charset = ks_c_5601-1987 tag).

  7. thumb : A html thumbnail index file generator for use on a fast network (or on a local machine).(NEW 8/26/98)

    Example: ThumbExample0.html

    $ cd /path/to/image/dir
    $ thumb -n 2 -t ThumbExample -x 100 -y 100
    images per page = 2
    2 pages generated
    Files = 4
  8. web2news : A Perl script utilizing Lynx for viewing usenet newsgroups in a web browser.
    There is a security hole in version 0.1, so update to version 0.2 immediately

    Examples: han.* / utexas.org.ksa / comp.sys.palmtops.pilot

  9. class2html : C++ class header file to html format (shows class hierarchy and colorizes fonts). This script doesn't require any javadoc-like tagging. However, don't expect much either -- this is just a quick and dirty script that fits my humble purpose. ;-)

    Example: window.h (original C++ header) / window.html (generated html file)

  10. card : An on-line greeting card CGI. You'll also need some other file(s) as well. Read the comment in the script. Just type in "test.test" without the quotes to see the actual card. I wrote this because I don't want to reveal mine or other's emails to the free greeting card services on the net. ;-)

    Example: Christmas card, 1997

  11. There are some other scripts, such as the GALLERY script, and Grade On-Line script (for the T.A. job), and other miscellaneous scripts for sysadmin stuff, etc, which I never got about cleaning up. ;-)

This page is maintained by Yoonsuck Choe (yschoe@cs.utexas.edu).
Last Updated : Wednesday, 08-May-2002 15:50:31 CDT

| UTCS home | UT home |