Here is some free software I have written.
| Linux | |
|---|---|
| proc-surfer.py | Viewer for Linux system internals, cross-references processes, sockets, files, pipes, users and graphically displays disk usage |
| OS Independent | |
| HtmlTableOfContents.py | Inserts a table of contents into a HTML file, |
| Windows | |
| Sia | Information network editor |
| SR | Search and Replace within files. |
| JoinText | Joins lines of text within files |
| ASCII | Prints a simple ASCII chart |
| strftime | Prints the current time in an arbitary format |
| sleep | Suspends a process for a given number of seconds |
Starts a web server which allows you to browse the current internal state of your computer, showing processes, files, sockets, pipes, users and disk usage. These resources are all cross-referenced so it is trivial to say, see which process has a given TCP connection open.
With no arguments proc-surfer starts firefox to browse itself. With a port number it just waits for connections, which may be from another computer.
Inserts a table of contents into an html file, that is one link for each <h1>, <h2> etc.... Inserts the table of contents between the comments <!--toc--><!--end toc-->.
sr - Search And Replace v1.23 (c) 1999 Gene Thomassr search [/r replace] [files...] Search and replace given text in files (or stdin to stdout). If no replace string is given just search. Saves original files as filename.bak. /f Fixed strings /b C style backlash escaped strings, e.g. "tab\tbreak" /x Fixed Hex byte strings , e.g."3c 3d 24" /e Regular expression match (default): ^ start of line $ end of line . any character \ literal next character * match zero or more + match one or more [aeiou0-9] match a, e, i, o, u, and 0 thru 9 [^aeiou0-9] match anything but a, e, i, o, u, and 0 thru 9 \| alternatives \( \) grouping Replace string escape symbols: $0 matched pattern, $1 1st group, $9 9th group, $$ literal '$' /i Ignore case /I Ignore and preserve case. /w Whole word matches /s Recurse sub directories (windows only) /p Prompt user for each line replacement /q Quite - Do not print matches or replacements /t Print total matches, filenames, line numbers (default) /? Help summary /d Print full documentation /c Continuous mode (not line by line) /l No end of line translation (windows only) \n\r <-> \n /B Binary mode (/l /c and /x)
JoinText v1.0 - (c) 2000 By Gene Thomas gl_thomas@hotmail.com Syntax: JoinText [/?] filename1 [/s text] [/t text] [filename2] [/s text] [/t te xt] ... Reads files simultaneously, line by line and prints their contents side by side. Like a line by line version of the Unix command 'cat'. The same file may be specified multiple times. /s or // Specifies a string to print. You can use C style backslash conventions, e.g. \n \t \x32 etc... Additionally \G for >, \L for < and \B for | /t Specifies some literal text, like /s except that backslashes are not expanded . Example: foo.txt: bar.txt: everything custard is rules connected JoinText foo.txt /s "HELLO" bar.txt /s \tBLA outputs: everythingHELLOcustard BLA isHELLOrules BLA connectedHELLO BLA
ASCII v1.0 - (c) 2000 By Gene Thomas GL_Thomas@hotmail.com Prints a simple table of the (PC) ASCII character set Syntax: ascii
strftime v1.0 - (c) 2000 By Gene Thomas GL_Thomas@hotmail.com
Syntax: strftime format [codeChar]
Prints current time like C strftime function
codeChar replaces this character in the format string
useful as DOS substitues %%s as environment variables
Codes:
%a Abbreviated weekday name
%A Full weekday name
%b Abbreviated month name
%B Full month name
%c Date and time representation appropriate for locale
%d Day of month as decimal number (01 - 31)
%H Hour in 24-hour format (00 - 23)
%I Hour in 12-hour format (01 - 12)
%j Day of year as decimal number (001 - 366)
%m Month as decimal number (01 - 12)
%M Minute as decimal number (00 - 59)
%p Current localeÆs A.M./P.M. indicator for 12-hour clock
%S Second as decimal number (00 - 59)
%U Week of year as decimal number, with Sunday as first day of week (00 - 53)
%w Weekday as decimal number (0 - 6; Sunday is 0)
%W Week of year as decimal number, with Monday as first day of week (00 - 53)
%x Date representation for current locale
%X Time representation for current locale
%y Year without century, as decimal number (00 - 99)
%Y Year with century, as decimal number
%z Time-zone name or abbreviation; no characters if time zone is unknown
%Z Time-zone name or abbreviation; no characters if time zone is unknown
%% Percent sign
Example: strftime "The date is !d !B !Y, the time is !H:!M" !
Outputs: The date is 24 September 1975, the time is 14:22
sleep [seconds] Suspends current process for given number of seconds.