Scripts, Programs and One Liners

From: systhread.net  read times: 133


Provided by yangyi at 2009-07-04 20:29:55


I have written well over a few hundred scripts and programs; most of which are (were) so specific to a particular system, organization or function; they are utterly useless to the community at large. In this section of the site is a collection of programs/scripts that turned out to be somewhat useful or programs/scripts which I intentionally wrote for myself and decided to share. Not all of them are mine (or at least their original incarnation), in addition to these I have some Source examples of various languages I have played around with.

Anonymous CVS Access

All of the code here that is currently in use or actively developed can be found at Sourceforge as well. The module names are listed at the top of the repository. Note that not all software I am working on is packaged here and is only available in CVS.

Checking out Code

cvs -d:pserver:anonymous@systhread.cvs.sourceforge.net:/cvsroot/systhread \
	login 
cvs -z3 -d:pserver:anonymous@systhread.cvs.sourceforge.net:/cvsroot/systhread \
	co -P modulename

Current

The first batch is stuff I (try...) to maintain and improve listed by order of creation (which is to say the activity is more from the top down).

gnetscan-1.4 & 1.5 (download-stable | download-testing) updated
I needed a fast portscanner for known good networks so I wrote one. It is based on the original portscanner software. It also has a 5k smaller version that checks a single port on a single host. Further plans can be found in the TODO file.
portcheck (download) new!
The micro single port single host portcheck program that was written (and is updated with) the series about writing said program at this site. This particular program is both useful to learn about network connection programming and a decent little utility.
uhttpd (download) new!
Tiny httpd server grokked from an IBM developer article. It is a neat little bit of demonstration code that budding programmers might be interested in playing with.
usniff (download) new!
A tiny ultra simple packet sniffer for the curious. Usniff is good for places where one might not want the overhead of tcpdump or for those simply interested in writing their own - it is great demonstration code.
netward-1.0 (download)
Psuedo-replacement for portsentry which sniffs out packets that are not specified on ports by the user as being valid and currently will log them. It works using a sample rate of packets and threshold.
nettest-2.2 (download)
The original nettest from Cray research (now owned by SGI) and unmaintained. Although there are better (and more exotic to setup) tools out there, nettest does a good job of showing stats between two endpoints with very little muss and fuss. The current version is stable and runs on several platforms.
pwutils-0.5 (download)
A small set of user and group reporting utilities designed to demonstrate the flexibility of several languages for budding programmers and sysadmins alike.
etu-0.1.7 (download)
A utility that uses the Epeg and imlib2 API to create thumbnails (extraordinarily fast). It can also daemonize and refresh thumbnail directories making it a nice cli plugin for image scaling.
mmw-1.9 (download)
Utility to show memory information in intervals and periods.
BSDbench 2.2 (download)
A rewrite of the 4.4-BSD benchmark tools. Useful for creating loads on a BSD system which a lot of people still like to use from time to time .

Discontinued or Unmaintained

The following are scripts and programs that have either reached end of life, been superceded or just do not really require maintenance but are still useful.

dusage (view/download)
Simple disk usage script.
newsfetch-1.4 (download)
A small program that fetches netnews.
service-0.5 (download)
A multi-platform service start, stop and/or restart utility that is basically cloned from the redhat utility of the same name.
lscpu-1.8 (download)
Small utility to fetch processor information on Linux.
diskinfo-1.9 (download)
Gets information about specified ide disk.
user-0.2 (download)
A small collection of portable user reporting scripts and programs. The user tools have been migrated to the pwutils package.
puserinfo-2.1 (view/download)
BSD userinfo clone in Perl- superceded by the user package.
qtop (view/download)
A nicer top viewer - requires no maintenance.
whodo (view/download)
Who is doing what program - requires no maintenance.
nukems (view/download)
Get rid of CTRL-Ms from DOS files - redundant.
service-0.5 (download)
This is the original in Perl which I moved to scripts and redid in sh.

The Complete List

Following is a complete list of software worked on, some of which is hosted here, but definitely not all of it (kernel hacking comes to mind ...).

......

Please access the below link to view the full content.

Original link: http://systhread.net/coding/