1 #!/home/tridge/bin/template -c
2 Content-Type: text/html
8 {{ JUNKCODE=/ftp/unpacked/junkcode }}
11 <title>Tridge's junk code</title>
14 <h1>Tridge's junk code</h1>
16 This is a collection of bits of code that I have written over the
17 years but that hasn't ever been released as a full project. There are
18 lots of bits and pieces in here that I'm sure will be useful to
21 The reason I call this 'junkcode' is that I have no plans to properly
22 document, package or support this code. If you find it useful then
23 that's great, but I already have enough free software projects to keep
24 me busy so I won't be spending a lot of time on this stuff.<p>
26 If you want to send me patches to this stuff then you can email
27 junkcode@samba.org but please don't expect me to be very
32 Most of this code can be downloaded using anonymous git, rsync, ftp or
33 http. I leave it as a challenge to the reader to work out how.
37 Unless specified otherwise (either in the source code or in some
38 documentation) you can assume that this code is released under the GNU
39 General Public License version 2 or later. If you want to use the code
40 in a piece of free software and the GPL doesn't meet your needs for
41 some reason then feel free to contact me and I may offer that bit of
42 code under a different license.<p>
46 Most of this code was written by <a
47 href="http://samba.org/~tridge/">Andrew Tridgell<a>.
51 <p>There are some other bits of code that I haven't catalogued yet
53 href="http://samba.org/ftp/unpacked/junkcode/">http://samba.org/ftp/unpacked/junkcode/</a>.
54 If I refer to some piece of 'junkcode' in an email to you and you
55 don't see it listed below then try looking there.
62 count=`/bin/ls /home/httpd/html/junkcode/*.txt | wc -l`
64 per_col=`expr \( $count + $ncols - 1 \) / $ncols`
66 for f in /home/httpd/html/junkcode/*.txt; do
67 name=`basename $f .txt`
70 echo "<td valign=top><ul>"
73 echo "<li> <a href="#$name">$name</a>"
76 if [ $i -eq $per_col ]; then
86 {{ C_SOURCE=<p>Download and compile <a href="{{$JUNKCODE}}/{{$name}}.c">{{$name}}.c</a><p> }}
87 {{ PERL_SOURCE=<p>Download and run <a href="{{$JUNKCODE}}/{{$name}}.pl">{{$name}}.pl</a><p> }}
88 {{ DIR_SOURCE=<p>Download <a href="{{$JUNKCODE}}/{{$name}}/">here</a><p> }}
89 {{ TOP_SOURCE=<p>Download <a href="/ftp/unpacked/{{$name}}/">here</a><p> }}
92 for f in /home/httpd/html/junkcode/*.txt; do
93 name=`basename $f .txt`