diff --git a/.gitignore b/.gitignore index b84c806..7abcfb4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -/.ikiwiki -/recentchanges +*~ +*.html + diff --git a/DsLinks.mdwn b/DsLinks.mdwn deleted file mode 100644 index 4dcc8e2..0000000 --- a/DsLinks.mdwn +++ /dev/null @@ -1,13 +0,0 @@ -[[meta title="Nintendo DS Links"]] - -* [NDS Homebrew](http://www.ndshb.com/) - ----- - -* [DS Frotz](http://gugusse.central.free.fr/papafuji/DSFrotz.html) for playing Infocom ZIP files -* [Rick Dangerous](http://gpf.dcemu.co.uk/xrickds.shtml) -* [robotfindskitten](http://gpf.dcemu.co.uk/robotfindskitten.shtml) -* [ScummVM](http://scummvm.drunkencoders.com/) -* [Python](http://www.develer.com/~lmancini/dspython/) -* [MythTV Remote](http://grizzly.thewaffleiron.net/mythremote/) -* [PAlib](http://www.palib.info) for writing my own stuff \ No newline at end of file diff --git a/HouseTodo.mdwn b/HouseTodo.mdwn deleted file mode 100644 index e36145c..0000000 --- a/HouseTodo.mdwn +++ /dev/null @@ -1,8 +0,0 @@ -[[meta title="House Todo"]] - -* Front door -* Paint the house -* Take up carpet in living room -* Wood stove -* Fix upstairs attic doors -* Insulate floors diff --git a/Jamfile b/Jamfile new file mode 100644 index 0000000..a80e7cd --- /dev/null +++ b/Jamfile @@ -0,0 +1,8 @@ +SubDir TOP ; + +Webify index.mdwn ; + +SubInclude TOP papers ; +SubInclude TOP poems ; +SubInclude TOP src ; +SubInclude TOP toys ; diff --git a/Jamrules b/Jamrules new file mode 100644 index 0000000..019d6c6 --- /dev/null +++ b/Jamrules @@ -0,0 +1,41 @@ +MDWNTOHTML = $(TOP)/mdwntohtml ; +DIRLIST = $(TOP)/dirlist ; +TEMPLATE = $(TOP)/template.xml ; + +rule Copy { + local tgt = $(1:D=$(SUBDIR)) ; + File $(tgt) : $(2) ; + Clean clean : $(tgt) ; +} + +rule AutoIndex { + local tgt = $(1:D=$(SUBDIR)) ; + local src = $(3:D=$(SUBDIR)) ; + local head = $(2:D=$(SUBDIR)) ; + + HEAD on $(tgt) = $(head) ; + Depends $(tgt) : $(src) $(head) $(DIRLIST) ; + Clean clean : $(tgt) ; + DirList $(tgt) : $(src) ; +} + +rule Webify { + local html ; + + for i in $(1:D=$(SUBDIR)) { + html = $(i:S=.html) ; + + Depends $(html) : $(i) $(TEMPLATE) $(MDWNTOHTML) ; + Depends all : $(html) ; + Clean clean : $(html) ; + MdwnToHtml $(html) : $(i) ; + } +} + +actions MdwnToHtml { + $(MDWNTOHTML) $(TEMPLATE) < $(2) > $(1) +} + +actions DirList { + $(DIRLIST) $(HEAD) $(2) > $(1) +} diff --git a/Makefile b/Makefile deleted file mode 100644 index 57c309e..0000000 --- a/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -all: - ikiwiki --setup ~/lib/wiki/ikiwiki.setup --wrappers diff --git a/bees.mdwn b/bees.mdwn deleted file mode 100644 index 67a85b6..0000000 --- a/bees.mdwn +++ /dev/null @@ -1,9 +0,0 @@ -Amy and I got this crazy notion that we'd keep bees. On this page you can laugh at our follies. - -New Mexico Bee Stuff --------------------- - -* I wish we had known about [Zia Queen Bees](http://ziaqueenbees.com/) before we ordered our package. -* The [Sangre De Cristo Beekeepers List](http://pets.groups.yahoo.com/group/SDCBeekeepers/) is full of helpful people. - -[[!inline pages="link(bees)" show="0" reverse="yes" postform="no" actions="yes" description="Neale's Bees" author="Neale Pickett"]] diff --git a/biketodo.mdwn b/biketodo.mdwn deleted file mode 100644 index 88bd220..0000000 --- a/biketodo.mdwn +++ /dev/null @@ -1,62 +0,0 @@ -[[meta title="Bike Todo"]] - -General -======= - -* Spare shifter cables -* Spare brake cables -* Spare shifter housing -* Spare brake housing -* Spare housing end caps -* Spare cable crimp-on end thingies -* A couple extra patch kits and tire levers for classes - -Amy's Rodriguez -=============== - -* New helmet - - -Doosoo -====== - -* Another rear light -* Spare tube -* Spare tire - -Neale's Rodriguez -================= -* Clean off remaining bug guts -* Maybe put on the Biopace chainrings - - -ALAN -============ - -* Put components back on (derailers, shifters, handlebars) -* Brake and shifter cables -* Needs tires and tubes -* Needs new brake hoods -* Bar tape (yellow, maybe?) -* May as well buy a couple spare 6sp freewheels while I can still get them. Bikeman sells a 6sp Mega-range freewheel. - - -Bike Friday -=========== -* Spare tube -* Spare tire -* Multi-tool -* Tire levers -* Patch kit -* Wedge pack -* Normal brake levers -* Move bar-end shifters from Fuji -* Bar tape (definitely violet) -* Might want to get a couple 7sp freewheels (also for tandem) before they become endangered. Mega-range FTW. - - -Tandem -====== - -* Put the damned fenders on -* Get some 7sp freewheels (also used on Bike Friday) before they become endangered. diff --git a/blog.mdwn b/blog.mdwn deleted file mode 100644 index 528d98d..0000000 --- a/blog.mdwn +++ /dev/null @@ -1,4 +0,0 @@ -[[!meta title="Neale's Blog"]] -[[!meta author="Neale Pickett" authorurl="http://woozle.org/~neale/"]] -[[!inline pages="blog/* and !blog/*/*" show="10" postform="no" actions="yes" description="Neale's Blog" author="Neale Pickett"]] -[[older_entries|BlogArchive]] diff --git a/blogarchive.mdwn b/blogarchive.mdwn deleted file mode 100644 index 2dfcc6c..0000000 --- a/blogarchive.mdwn +++ /dev/null @@ -1,2 +0,0 @@ -[[!meta title="All blog entries"]] -[[!inline pages="blog/* and !blog/*/*" rootpage="blog" feeds="no" archive="yes"]] diff --git a/datedblog.mdwn b/datedblog.mdwn deleted file mode 100644 index da644fd..0000000 --- a/datedblog.mdwn +++ /dev/null @@ -1,10 +0,0 @@ -DatedBlog ---------- - -[[!datedblog pages="blog/* and !blog/*/*" rootpage="blog" archive="yes" show="2"]] - - -Inline --------- - -[[!inline pages="blog/* and !blog/*/*" rootpage="blog" archive="yes" show="2"]] diff --git a/default.css b/default.css index ff6660a..22538ba 100644 --- a/default.css +++ b/default.css @@ -1,25 +1,19 @@ -/* - * Global - */ - -html { - color:#061208; - background:#bfb8a6; +body { + max-width: 40em; + background-color: #eee; } -body { - background:#e1d8c9; - border: solid black 1px; - font-family: serif; - color: #000; - margin: 1em auto; - padding: 2px; - min-width: 20em; - max-width: 50em; +p, li, dd { + text-align: justify; +} + +h1:first-child { + background-color: #cc8; + margin-top: 0; } h1, h2, h3, h4, h5, h6 { - font-family: "MgOpen Moderna", sans-serif; + font-family: "URW Gothic L", sans-serif; color: #c17f6f; } @@ -35,201 +29,24 @@ a:hover { } pre { - background: silver; + background: #ccc; + margin: 1em 2em; + padding: 1em; + border: solid black 1px; } -.notice { - background: yellow; -} - -.figure { - float: right; - text-align: center; - background-color: #eeeeee; - border: solid gray 2px; - padding: 4px; - margin: 5px 15px; -} - -.left { - float: left; -} - -.right { - float: right; -} - -/* - * Header elements - */ - -h1#head { - background:#5c5f80; - border: 1px solid black; - text-align: left; - padding: 0em 0px 1em 10px; - margin: 0em; - font: normal 2em "URW Gothic L" sans-serif; - letter-spacing: 0.33em; -} -#head a { - color: #ffe; -} -#head img { - float: right; - border: 2px solid black; - margin: 0px 30px 5px 0px; -} - - -/* - * Navigation menu - * - * IE6 doesn't understand CSS selectors. So we use the > selector to - * specify stuff IE6 shouldn't see. This has the effect of permanently - * hiding the pop-up menus. - */ - #nav { - position: absolute; - top: 4em; - - text-align: left; - padding: 0em 1em; - margin: 0px auto; + padding: 0; + text-align: center; } - #nav li { display: inline; } -#nav li a { - background: #bdcde4; - color: #5c5f80; - padding: 1px 10px; -} -#nav li a:hover { - color: yellow; -} -#nav li ul { - background:#bdcde4; - display: none; -} -#nav > li ul li { - display: list-item; - padding: 0px; -} -#nav > li:hover { - position: relative; -} -#nav > li:hover ul { - color: white; - text-align: left; - display: block; - position: absolute; - top: 1.2em; - left: 0px; - margin: 0px 0px; - padding: 5px 5px; - min-width: 10em; - list-style-type: square; -} -#nav > li ul li { - display: list-item; - margin-left: 1em; -} -#nav ul.this { - color: #555; -} - - - /* - * Main body - */ - -#body { - margin: 10px; +#nav li + li:before { + content: " | "; } address { - background:#5c5f80; - color: #bdcde4; - border: 1px solid black; - margin: 0; clear: both; - padding: 0.5em; - font-size: 80%; -} -address a { - color: #ffe; -} - -/* - * IkiWiki crap - */ - -.actions { - font-size: 80%; - margin: 0; - padding: 1px 5px; - text-align: right; -} - -.actions:hover ul { - visibility: visible; -} - -.actions ul { - margin: 0; - visibility: hidden; -} - -.actions li { - display: inline; - padding: 2px; - margin: 0; -} - -.inlinepage { - border: solid black 1px; - margin: 1em 2em; - background: #eee; - padding: 0em 1em; -} - -.inlinepage .header a { - font-size: 150%; -} - -/* Orange feed button. */ -.feedbutton { - background: #f60; - color: white; - border: outset black 1px; - padding: 0px 0.5em 0px 0.5em; - font: bold 8pt sans-serif; -} - -.feedbutton:hover { - background: #f90; -} - -.pagedate { - color: #666; - font-size: 75%; -} - -table.img { - float: right; - background-color: #eef; - border: solid #ccd; - border-width: 1px 1px 0px 1px; -} - -table.img caption { - font-size: 80%; - caption-side: bottom; - text-align: center; - background-color: #eef; - border: solid #ccd; - border-width: 0px 1px 1px 1px; + font-size: small; } diff --git a/dirlist b/dirlist new file mode 100755 index 0000000..4b0163a --- /dev/null +++ b/dirlist @@ -0,0 +1,13 @@ +#! /bin/sh + +cat $1; shift + +echo '
' +for i in "$@"; do + size=$(du --si $i | cut -f1) + desc=$(sed -n '1,3 s/.*\(Description: \|Title: \|-- \)//p' $i) + fn=$(basename $i) + echo "
$fn ($size)
" + echo "
$desc
" +done +echo '
' diff --git a/logo.png b/face.png similarity index 100% rename from logo.png rename to face.png diff --git a/index.mdwn b/index.mdwn index 4219f71..4192326 100644 --- a/index.mdwn +++ b/index.mdwn @@ -1,12 +1,8 @@ -[[!meta title="Neale Pickett Page"]] +Title: Neale Pickett Page + One day a pirate walks into a bar with a steering wheel attached to his crotch. So the bartender says to him, "You know you have a steering wheel attached to your crotch?" And the pirate says, "Aaar, it's driving me nuts!" - ----- - -* [Neale's wish list](/wishlists/neale/) -* [Pickett Genealogy](geneweb.cgi?b=pickett) diff --git a/mdwntohtml b/mdwntohtml new file mode 100755 index 0000000..71069bb --- /dev/null +++ b/mdwntohtml @@ -0,0 +1,16 @@ +#! /bin/sh + +while IFS=: read field value; do + case "$field" in + "") + break + ;; + Title) + # echo strips leading and trailing whitespace + title=$(echo $value) + break + ;; + esac +done + +cat | markdown | m4 -DTITLE="$title" $1 - diff --git a/ourbikes.mdwn b/ourbikes.mdwn deleted file mode 100644 index 6c092e1..0000000 --- a/ourbikes.mdwn +++ /dev/null @@ -1,34 +0,0 @@ -![Bike Measurements](bike-measure.png) - -Amy's Stellar -------------- - -a. 67.5cm -b. 95cm -c. 170mm -d. 57.5cm -e. N/A -f. 93cm - - -Neale's Touring ---------------- - -a. 82cm -b. 108cm -c. 170mm -d. 64cm -e. 42cm -f. 107cm - - -Bike Friday ------------ - -a. 82cm -b. 95cm -c. 175mm -d. 75cm -e. 42cm -f. 105cm -effective top-tube length: 57cm diff --git a/ourbikes/bike-measure.png b/ourbikes/bike-measure.png deleted file mode 100644 index a8bc7ad..0000000 Binary files a/ourbikes/bike-measure.png and /dev/null differ diff --git a/papers.mdwn b/papers.mdwn deleted file mode 100644 index 529cf90..0000000 --- a/papers.mdwn +++ /dev/null @@ -1,7 +0,0 @@ -[[!meta title="Papers"]] - -These are papers I have written. Most of them were written to explain a -concept to someone on woozle. Hopefully other people will find them -useful, too. - -[[!map pages="papers/*" show="title"]] diff --git a/papers/Jamfile b/papers/Jamfile new file mode 100644 index 0000000..d97aa7f --- /dev/null +++ b/papers/Jamfile @@ -0,0 +1,3 @@ +SubDir TOP papers ; + +Webify index.mdwn reply-to-still-harmful.mdwn sockets.mdwn DNS.mdwn html-tutorial.mdwn digimatrix.mdwn ; diff --git a/papers/digimatrix.mdwn b/papers/digimatrix.mdwn index 5c934ad..bd271ac 100644 --- a/papers/digimatrix.mdwn +++ b/papers/digimatrix.mdwn @@ -1,10 +1,8 @@ -[[!meta title="Debian on Digimatrix"]] +Title: Debian on Digimatrix -

- Caution: this is what I was running in 2004. Nowadays we just use - MythTV. Some of this stuff (like the X configuration) still applies, - though, which is why I'm leaving the page up. -

+Caution: this is what I was running in 2004. Nowadays we just use +MythTV. Some of this stuff (like the X configuration) still applies, +though, which is why I'm leaving the page up. Introduction ------------ @@ -77,7 +75,7 @@ I installed the following additional packages to help me administer the machine:
-# aptitude install less zile screen ssh strace sudo ntp ntpdate
+# apt-get install less zile screen ssh strace sudo ntp ntpdate
 
@@ -87,8 +85,8 @@ Web server Waldorf needed to run a web server to host photo albums.
-# aptitude install mathopd stunnel4 php4-cgi rssh
-# aptitude install netpbm jhead exiftran libjpeg-mmx-progs libjpeg-progs
+# apt-get install mathopd stunnel4 php4-cgi rssh
+# apt-get install netpbm jhead exiftran libjpeg-mmx-progs libjpeg-progs
 
I won't detail my web server configuration here, since that's unique to me. @@ -97,7 +95,7 @@ X ----
-# aptitude install x-window-system
+# apt-get install x-window-system
 
To my surprise this brought in x.org. I run an HDTV over DVI, so to get @@ -138,7 +136,7 @@ to want to do that very often. I may work on a web interface to XML-TV listings later on.
-# aptitude install kde kdm
+# apt-get install kde kdm
 
I don't know if this is typical or not, but Debian's KDE went on without @@ -148,7 +146,7 @@ asking me a single question. Kudos to the packagers. h2. Sound
-# aptitude install alsa-base alsa-utils
+# apt-get install alsa-base alsa-utils
 
We use the Digimatrix's S/PDIF output (isn't it lame that it comes out @@ -206,7 +204,7 @@ allows you to type in numbers for various actions (play from playlist, play DVD, etc.).
-# aptitude install kaffeine
+# apt-get install kaffeine
 
@@ -237,7 +235,7 @@ In any case, turning on DMA will allows your DVD drive to keep up with the data on the DVD.
-# aptitude install hdparm
+# apt-get install hdparm
 
To turn on DMA, I put the following at the end of `/etc/hdparm.conf`. @@ -288,9 +286,7 @@ interface to various IR recievers and remote controls, and supplies events to whatever wants to listen to it. KDE has a module to listen to it, so I figured I'd give it a go. -
-# aptitude install kdelirc
-
+ # apt-get install kdelirc Unfortunately, lirc 0.7 (the version in debian testing and unstable) does not compile on Linux 2.6.12 and newer, so I had to install from diff --git a/papers/html-tutorial.html b/papers/html-tutorial.html deleted file mode 100644 index 0e84f3d..0000000 --- a/papers/html-tutorial.html +++ /dev/null @@ -1,110 +0,0 @@ -[[!meta title="The 3-minute HTML tutorial"]] - -

As computer formats go, HTML is really easy and logical. It's all just -text that you can edit with any basic text editor, like gedit nder -Gnome, or notepad in Windows. Let's start out with an example. Say you -have a sentence, and you want one word in it to be bold. That sentence -would look like this:

- -
Guess which word is <b>bold</b>?
- -

As should be obvious, the bold word in that sentence is "word". Just -kidding, it's the word "bold", in between <b> and </b> tags. -The sentence will show up like so:

- -
Guess which word is bold?
- -

You now know HTML, the rest is just learning the names of the tags.

- -
- -

Seriously! Here's a slightly larger example:

- -
<title>My first web page</title>
-<h1>Welcome</h1>
-<p>
-  Welcome to my <b>first ever</b> web page!
-  It features:
-</p>
-<ul>
-  <li>A title!</li>
-  <li>A header!</li>
-  <li>A paragraph!</li>
-  <li>An unordered list!</li>
-</ul>
-
- -

So what you end up with in the end is something like this:

- -
-
-
- My first web page - WoozWeb Browser -
-

Welcome

-

- Welcome to my first ever web page! - It features: -

- -
-
- -

The part inside the <title> and the </title> is the title of your -page; that's what goes in the window frame at the very top of your web -browser window, above the menus and everything else.

- -

The stuff in between <h1> and </h1> is a "level-1 header". That -means that it's the biggest header you can get. There are also h2, h3, -h4, h5, and h6 headers, with h6 being the smallest.

- -

The stuff inside <p> and </p> is a paragraph. Since HTML treats -spaces the same as line breaks, you need to use paragraph tags around -each paragraph. Inside the example paragraph is our old friend bold.

- -

Then, there's <ul> and </ul>, an "unordered list" (as opposed to an -ordered list, which would have a number by each item). Inside the list -are four "list items", enclosed in <li> and </li>.

- -
- -

Now check this action out:

- -
<p>
-This is an
-<img src="http://www.woozle.org/images/star.png"
-  alt="star"></img> image, and
-<a href="http://woozle.org/">this</a> is a link.
-</p>
-
- -

Which will show up like this:

- -
-

This is an star image, and this is a link. -

- -

The example above has an image tag, with two "attributes", "src" and -"alt". The "src" attribute in an <img> tag gives the -URL to a picture, and the "alt" attribute is the text that's displayed -to people who can't see images (blind users, folks without graphics -capabilities, or if there's a problem on your web server). The "alt" -attribue is required, but you can set it to "" if there's -nothing appropriate for alternate text.

- -

Lastly, the infamous link, enclosed inside of <a> -and </a>. The "href" attribute gives the URL that -the browser will go to if you click the link.

- -
- -

That's it for basic HTML, and it should be enough to get you started -writing your own pages. So go write something! The best way to learn -it is to try stuff out and see what it does. For more neat HTML tags, -check out HTML 3.2 by -Examples, which is what I used to learn HTML.

diff --git a/papers/html-tutorial.mdwn b/papers/html-tutorial.mdwn new file mode 100644 index 0000000..d39a494 --- /dev/null +++ b/papers/html-tutorial.mdwn @@ -0,0 +1,107 @@ +Title: The 3-minute HTML tutorial + +As computer formats go, HTML are really easy and logical. It's all just +text that you can edit with any basic text editor, like gedit nder +Gnome, or notepad in Windows. Let's start out with an example. Say you +have a sentence, and you want one word in it to be bold. That sentence +would look like this: + + Guess which word is bold? + +As should be obvious, the bold word in that sentence is "bold", in +between `` and `` tags. The sentence will show up like so: + +> Guess which word is bold? + +You now know HTML, the rest is just learning the names of the tags. + +--- + +Here's a slightly larger example: + + My first web page +

Welcome

+

+ Welcome to my first ever web page! + It features: +

+ + +What you end up with in the end is something like this: + +>
+>
+> My first web page - WoozWeb Browser +>
+>

Welcome

+>

+> Welcome to my first ever web page! +> It features: +>

+> +>
+ +The part inside the `` and the `` is the title of your +page: that's what goes in the window frame at the very top of your web +browser window, above the menus and everything else. + +The stuff in between `

` and `

` is a "level-1 header". That +means that it's the biggest header you can get. There are also h2, h3, +h4, h5, and h6 headers, with h6 being the smallest. + +The stuff inside `

` and `

` is a paragraph. Since HTML treats +spaces the same as line breaks, you need to use paragraph tags around +each paragraph. Inside the example paragraph is our old friend bold. + +Then, there's ``, an +"unordered list" (as opposed to an ordered list, which would have a +number by each item). Inside the list are four "list items", enclosed +in `
  • ` and `
  • `. + +---- + +Now, for inline images: + +

    + This is an + woozle head image, and + this is a link. +

    + +Which will show up like this: + +>

    This is an alt="woozle head" /> image, and +> this is a link. + +The example above has an image tag, with two "attributes", "src" and +"alt". The "src" attribute in an `` tag gives the URL to a +picture, and the "alt" attribute is the text that's displayed to people +who can't see images (blind users, folks without graphics capabilities, +or if there's a problem on your web server). The "alt" attribue is +required, but you can set it to `""` if there's nothing appropriate for +alternate text. + +Lastly, the link, enclosed inside of `` and ``. The "href" +attribute gives the URL that the browser will go to if you click the +link. + +--- + +That's it for basic HTML, and it should be enough to get you started +writing your own pages. So go write something! The best way to learn +it is to try stuff out and see what it does. For more neat HTML tags, +check out [HTML 3.2 by +Examples](http://www.cs.tut.fi/~jkorpela/HTML3.2/), which is what I used +to learn HTML. diff --git a/papers/index.mdwn b/papers/index.mdwn new file mode 100644 index 0000000..3c5814a --- /dev/null +++ b/papers/index.mdwn @@ -0,0 +1,17 @@ +Title: Papers + +These are papers I have written. Most of them were written to explain a +concept to someone on woozle. Hopefully other people will find them +useful, too. + +* [Reply-To Munging Still Considered Harmful](reply-to-still-harmful.html) +* [Introduction to TCP Sockets](sockets.html) +* [3-Minute HTML Tutorial](html-tutorial.html) +* [How DNS Works](DNS.html) + +--- + +The rest of these are old, and probably irrelevant, but I'm keeping them +here on the off chance that someone still needs the information. + +* [Debian on the Digimatrix (2004)](digimatrix.html) diff --git a/papers/reply-to-still-harmful.mdwn b/papers/reply-to-still-harmful.mdwn index 87d153e..cdde4e9 100644 --- a/papers/reply-to-still-harmful.mdwn +++ b/papers/reply-to-still-harmful.mdwn @@ -1,4 +1,4 @@ -[[!meta title="“Reply-To” Munging Still Considered Harmful. Really."]] +Title: “Reply-To” Munging Still Considered Harmful. Really. An Earnest Plea to People Still Having This Debate -------------------------------------------------- diff --git a/papers/sockets.mdwn b/papers/sockets.mdwn index 13b365a..d82e399 100644 --- a/papers/sockets.mdwn +++ b/papers/sockets.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Introduction To TCP Sockets"]] +Title: Introduction To TCP Sockets Client Sockets -------------- diff --git a/poems.mdwn b/poems.mdwn deleted file mode 100644 index 9fdf894..0000000 --- a/poems.mdwn +++ /dev/null @@ -1,7 +0,0 @@ -[[!meta title="Poems"]] - -If wishes were horses -And poets were kings -I guess I'd still have my day job. - -[[!map pages="poems/*" show="title"]] diff --git a/poems/Jamfile b/poems/Jamfile new file mode 100644 index 0000000..c9313d1 --- /dev/null +++ b/poems/Jamfile @@ -0,0 +1,4 @@ +SubDir TOP poems ; + +Webify index.mdwn ducks.mdwn goldfish.mdwn lake.mdwn mice.mdwn + optimized.mdwn poopy.mdwn sap.mdwn snark.mdwn ; diff --git a/poems/bagel-girl.mdwn b/poems/bagel-girl.mdwn index 74d01b5..9a537bb 100644 --- a/poems/bagel-girl.mdwn +++ b/poems/bagel-girl.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Ode to the Bagel Girl"]] +Title: Ode to the Bagel Girl We stand waiting for the 253 to Redmond The fog sits lightly on our tongues @@ -22,4 +22,3 @@ I wrote this on the bus home. There was a young girl with a beautiful face sitting at the front of the bus, and I kept looking at her before I started to write. I was laughing so hard as I wrote this, that she started to get pretty self-conscious. - diff --git a/poems/ducks.mdwn b/poems/ducks.mdwn index 5243899..5132fdb 100644 --- a/poems/ducks.mdwn +++ b/poems/ducks.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Ducks"]] +Title: Ducks If ducks ran the country, I'm sure you'll agree Things sure would be different for you and for me! diff --git a/poems/goldfish.mdwn b/poems/goldfish.mdwn index 8d749df..6d415a9 100644 --- a/poems/goldfish.mdwn +++ b/poems/goldfish.mdwn @@ -1,8 +1,8 @@ -[[!meta title="My Goldfish Wish"]] +Title: My Goldfish Wish -I wish a goldfish were my pet! -I'd make sure he was warm and wet. -I'd keep him in the kitchen sink, +I wish a goldfish were my pet! +I'd make sure he was warm and wet. +I'd keep him in the kitchen sink, And wash him when he starts to stink. diff --git a/poems/index.mdwn b/poems/index.mdwn new file mode 100644 index 0000000..4214d52 --- /dev/null +++ b/poems/index.mdwn @@ -0,0 +1,14 @@ +Title: Poems + +If wishes were horses +And poets were kings +I guess I'd still have my day job. + +* [Ducks](ducks.html) +* [My Goldfish Wish](goldfish.html) +* [Poem For A Moonlit Lake With City Lights Reflecting](lake.html) +* [Ode to Mice](mice.html) +* [Optimized](optimized.html) +* [The Poopy Song](poopy.html) +* [Sap](sap.html) +* [Snark Hair](snark.html) diff --git a/poems/lake.mdwn b/poems/lake.mdwn index 5ba90da..ae66586 100644 --- a/poems/lake.mdwn +++ b/poems/lake.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Poem For A Moonlit Lake With City Lights Reflecting"]] +Title: Poem For A Moonlit Lake With City Lights Reflecting It, is getting, diff --git a/poems/mice.mdwn b/poems/mice.mdwn index 4163c72..8f55edd 100644 --- a/poems/mice.mdwn +++ b/poems/mice.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Ode to Mice"]] +Title: Ode to Mice Leave them mice alone Let them wander through your home diff --git a/poems/optimized.mdwn b/poems/optimized.mdwn index 84c58d5..9f523ef 100644 --- a/poems/optimized.mdwn +++ b/poems/optimized.mdwn @@ -1,9 +1,9 @@ -[[!meta title="Optimized"]] +Title: Optimized This poem made for Wooz-Web 8 So please download today. -On my computer, it looks great! -On yours, it might turn gray. +On my computer, it sounds great! +On yours, it might not play. It uses ActivePoetry (By WoozleSoft, v4.3) diff --git a/poems/poopy-music.png b/poems/poopy-music.png new file mode 100644 index 0000000..71619eb Binary files /dev/null and b/poems/poopy-music.png differ diff --git a/poems/poopy.mdwn b/poems/poopy.mdwn index b1dd97b..57ff84a 100644 --- a/poems/poopy.mdwn +++ b/poems/poopy.mdwn @@ -1,4 +1,4 @@ -[[!meta title="The Poopy Song"]] +Title: The Poopy Song ![G|:ccGG cc2c|ddAA d3c|BBBB BB2A|GGAB c3G:|](poopy-music.png) diff --git a/poems/sap.mdwn b/poems/sap.mdwn index 70646a6..70f6135 100644 --- a/poems/sap.mdwn +++ b/poems/sap.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Sap"]] +Title: Sap I love you dear, so very much That I get sappy when we touch diff --git a/poems/snark.mdwn b/poems/snark.mdwn index 6431a01..12e82ff 100644 --- a/poems/snark.mdwn +++ b/poems/snark.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Snark Hair"]] +Title: Snark Hair Has anyone ever turned into a snark? In the sun? In the rain? When it's light? When it's dark? diff --git a/poems/winders.mdwn b/poems/winders.mdwn index f8e9eab..2ae235f 100644 --- a/poems/winders.mdwn +++ b/poems/winders.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Winders"]] +Title: Winders If I should ever find myself A-washin' dirty winders, diff --git a/print.css b/print.css index cd20bae..9cd0175 100644 --- a/print.css +++ b/print.css @@ -1,3 +1,13 @@ -#head, #nav, .actions { +#nav { display: none; -} \ No newline at end of file +} + +p { + text-align: justify; +} + +pre { + margin: 1em 2em; + padding: 1em; + border: solid black 1px; +} diff --git a/smileys.mdwn b/smileys.mdwn deleted file mode 100644 index d3dc97c..0000000 --- a/smileys.mdwn +++ /dev/null @@ -1,33 +0,0 @@ -This page is used to control what smileys are supported by the wiki. -Just write the text of a smiley to display it. - -* \\:) [[smileys/smile.png]] -* \\:-) [[smileys/smile.png]] -* \\:> [[smileys/smile.png]] -* \\:D [[smileys/smile-big.png]] -* \\:-D [[smileys/smile-big.png]] -* \\;) [[smileys/wink.png]] -* \\;-) [[smileys/wink.png]] -* \\:\ [[smileys/thinking.png]] -* \\:-\ [[smileys/thinking.png]] -* \\:/ [[smileys/thinking.png]] -* \\:-/ [[smileys/thinking.png]] -* \\:| [[smileys/neutral.png]] -* \\:-| [[smileys/neutral.png]] -* \\:( [[smileys/sad.png]] -* \\:-( [[smileys/sad.png]] -* \\:< [[smileys/sad.png]] -* \\:-? [[smileys/tongue.png]] -* \\:-P [[smileys/tongue.png]] -* \\:o [[smileys/shock.png]] - ----- - -To change the supported smileys, just edit the lists on this page. -Note that the format is important; each list item should start with the -text that is turned into the smiley, escaped so that users can see what -produces it, followed by a [[ikiwiki/WikiLink]] to the image to display. - -/!\ Bear in mind that the link to the image needs to be written in a way that -will work if it's copied to other pages on the wiki. So be sure to include the -smileys directory in the path to the file. diff --git a/src.mdwn b/src.mdwn deleted file mode 100644 index 3331377..0000000 --- a/src.mdwn +++ /dev/null @@ -1,10 +0,0 @@ -[[!meta title="Software"]] - -I write software for a living. I like doing it so much that sometimes I -even write software just for fun. - -You might want to browse through my [version control](/~neale/gitweb.cgi), or read about some of the larger projects below: - -[[!map pages="src/*" show="title"]] - - diff --git a/src/Jamfile b/src/Jamfile new file mode 100644 index 0000000..0437a45 --- /dev/null +++ b/src/Jamfile @@ -0,0 +1,11 @@ +SubDir TOP src ; + +Webify index.mdwn xss.mdwn escm.mdwn firebot.mdwn pysieved.mdwn ; + +SubInclude TOP src eguile ; +SubInclude TOP src ipqueue ; +SubInclude TOP src postscript ; +SubInclude TOP src python ; +SubInclude TOP src dwm ; +SubInclude TOP src misc ; + diff --git a/src/dwm/Jamfile b/src/dwm/Jamfile new file mode 100644 index 0000000..d1abdda --- /dev/null +++ b/src/dwm/Jamfile @@ -0,0 +1,6 @@ +SubDir TOP src dwm ; + +Webify index.mdwn ; +Copy config.h : $(HOME)/src/ports/dwm/config.h ; +Copy status.sh : $(HOME)/bin/status ; +Copy dwm-button.sh : $(HOME)/bin/dwm-button ; diff --git a/src/dwm/index.mdwn b/src/dwm/index.mdwn new file mode 100644 index 0000000..080cb78 --- /dev/null +++ b/src/dwm/index.mdwn @@ -0,0 +1,25 @@ +Title: dwm hacks + +I seem to have trouble keeping my attention on the task at hand if there +are little things flashing in the corner of the screen, or even changing +color (like, "you have new email"). The less I have on the screen, the +more productive I seem to be. It is for this reason that I've been +using "tiling" window managers since about 2003. + +I've been using [dwm](http://dwm.suckless.org/) since a friend +introduced me to it around 2008. What I like most about dwm, aside from +helping me stay focused on the task at hand, is that it gets out of my +way. There are no buttons to click, and no windows to drag around or +resize. In fact, I hardly ever use the mouse anymore, outside of my web +browser. + +* [My config.h](config.h) contains a few features I've added, like + restarting dwm, multimedia buttons, and + [xss](http://woozle.org/~neale/src/xss.html) integration (3 lines of + code). +* [My status script](status.sh) is responsible for having DWM show the + current time, load average, battery charge, and wifi status. It + gracefully handles machines that lack one or more of these features. +* [My button script](dwm-button.sh) is invoked when a multimedia button + is pressed, and handles screen brightness, volume, external monitors, + and more. diff --git a/src/eguile/Jamfile b/src/eguile/Jamfile new file mode 100644 index 0000000..18057d8 --- /dev/null +++ b/src/eguile/Jamfile @@ -0,0 +1,3 @@ +SubDir TOP src eguile ; + +Webify index.mdwn ; diff --git a/src/eguile.mdwn b/src/eguile/index.mdwn similarity index 74% rename from src/eguile.mdwn rename to src/eguile/index.mdwn index 27f452f..6a66474 100644 --- a/src/eguile.mdwn +++ b/src/eguile/index.mdwn @@ -1,4 +1,5 @@ -[[!meta title="Eguile : a scheme preprocessor"]] +Title: Eguile : a scheme preprocessor +Author: Neale Pickett If you've ever wished your text preprocessor could do symbolic derivation, eguile is the tool for you! @@ -14,12 +15,14 @@ sort of person that would enjoy something like this, you probably don't need any further description. -## Downloading it +Downloading it +-------------------------- -[eguile.scm](eguile.scm). +[eguile.scm](http://woozle.org/~neale/src/eguile/eguile.scm). -## Reference +Reference +-------------------------- Easy squeezy: @@ -40,7 +43,9 @@ renders as: 2 squared is 4 -## Inspiration + +Inspiration +-------------------------- I modeled eguile after ht2html by Barry Warsaw (a far cooler cat than I). ht2html is a slick package, but it didn't feel enough like @@ -49,17 +54,9 @@ seemed like a better solution, but felt a little too kludgy, and I needed to learn Scheme better anyway. So I stole the layout from ht2html and the syntax from escm. -## License + +License +-------------------------- eguile is distributed under the GNU Public License version 2.0 or later. Please refer to the file COPYING for more information. - - -## Help me help you! - -I don't honestly expect anyone to use eguile, so I'm not going to put -much into it beyond this page and what improvements I personally -need. If you do end up using it, please let me know! I'd be more than -happy to help you through any rough spots, and to consider any -suggestions. If nothing else, I can link to your pages as another -example of eguile in use :) diff --git a/src/escm.mdwn b/src/escm.mdwn index a93183e..3861b90 100644 --- a/src/escm.mdwn +++ b/src/escm.mdwn @@ -1,4 +1,4 @@ -[[!meta title="escm: a scheme preprocessor"]] +Title: escm: a scheme preprocessor This is my port of [eguile](http://woozle.org/~neale/src/eguile) to gauche scheme. It uses regular expressions and as a result is faster diff --git a/src/firebot.mdwn b/src/firebot.mdwn index 871bc38..10c9ebb 100644 --- a/src/firebot.mdwn +++ b/src/firebot.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Firebot: IRC Automaton"]] +Title: Firebot: IRC Automaton FireBot is a winner! diff --git a/src/index.mdwn b/src/index.mdwn new file mode 100644 index 0000000..21e159a --- /dev/null +++ b/src/index.mdwn @@ -0,0 +1,30 @@ +Title: Software + +I write software for a living. I like doing it so much that sometimes I +even write software just for fun. + +My [version control](/~neale/gitweb.cgi), holds the source code to most +of these packages. + +Networky things +------------------------------- +* [pysieved](pysieved/), a Python ManageSieve server +* [Firebot](firebot.html), an easily-extended IRC bot in continuous use since 1996 +* [Python IPQUEUE library](py-ipqueue/) + +X11 things +------------------------------- +* [xss](xss.html), a simple (suckless) screen saver for X11 +* [dwm hacks](dwm/) contains my tweaks to [dwm](http://dwm.suckless.org/) + +Various and sundry things +------------------------------- +* [eguile](eguile/), like PHP for Guile Scheme +* [escm](escm.html), like PHP for Gauche Scheme and others +* [Python hacks](python/) of diminutive size and quality +* [Postscript hacks](postscript/) of diminutive size and quality +* [Other hacks](misc/) of diminutive size and quality + + + + diff --git a/src/ipqueue/Jamfile b/src/ipqueue/Jamfile new file mode 100644 index 0000000..28546be --- /dev/null +++ b/src/ipqueue/Jamfile @@ -0,0 +1,3 @@ +SubDir TOP src ipqueue ; + +Webify index.mdwn ; diff --git a/src/ipqueue.mdwn b/src/ipqueue/index.mdwn similarity index 63% rename from src/ipqueue.mdwn rename to src/ipqueue/index.mdwn index 5dd7d26..06d6dad 100644 --- a/src/ipqueue.mdwn +++ b/src/ipqueue/index.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Python ipqueue"]] +Title: Python ipqueue This is the Netfilter userspace IPQueue module for Python. It allows you to do all your Linux IPQueue stuff from the comfort of Python. This only @@ -17,8 +17,7 @@ Download -------- * [Latest version](ipqueue.tar.gz) -* [Netfilter QUEUE bindings](nfqueue-0.1.tar.bz2) Mike Auty <mike.auty@gmail.com> - +* [Netfilter QUEUE bindings](nfqueue-0.1.tar.bz2) by Mike Auty License ------- @@ -38,29 +37,28 @@ Here's an example program which transparently proxies all traffic it gets to port 25 of 10.1.1.2. This is just an example, a real-world transparent proxy would be much more sophisticated. -

    -#! /usr/bin/env python
    +    #! /usr/bin/env python
     
    -import ipqueue
    -import iputils
    +    import ipqueue
    +    import iputils
     
    -rewrite = 1
    +    rewrite = 1
     
    -q = ipqueue.IPQ(ipqueue.IPQ_COPY_PACKET)
    -while 1:
    -    p = q.read()
    -    tcp = iputils.TCP(p[ipqueue.PAYLOAD])
    -    print "Got %s -> %s on hook %d" % (iputils.ntoa(tcp.saddr),
    -                                       iputils.ntoa(tcp.daddr),
    -                                       p[ipqueue.HOOK])
    +    q = ipqueue.IPQ(ipqueue.IPQ_COPY_PACKET)
    +    while 1:
    +        p = q.read()
    +        tcp = iputils.TCP(p[ipqueue.PAYLOAD])
    +        print "Got %s -> %s on hook %d" % (iputils.ntoa(tcp.saddr),
    +                                           iputils.ntoa(tcp.daddr),
    +                                           p[ipqueue.HOOK])
    +
    +        if rewrite and p[ipqueue.HOOK] == 0:
    +            tcp.daddr = iputils.aton("10.1.1.2")
    +            tcp.th_dport = 25
    +            q.set_verdict(p[0], ipqueue.NF_ACCEPT, tcp.to_str())
    +        else:
    +            q.set_verdict(p[0], ipqueue.NF_ACCEPT)
     
    -    if rewrite and p[ipqueue.HOOK] == 0:
    -        tcp.daddr = iputils.aton("10.1.1.2")
    -        tcp.th_dport = 25
    -        q.set_verdict(p[0], ipqueue.NF_ACCEPT, tcp.to_str())
    -    else:
    -        q.set_verdict(p[0], ipqueue.NF_ACCEPT)
    -
    Help me out ----------- diff --git a/src/misc/9p.scm b/src/misc/9p.scm index fbdd175..534dd3c 100755 --- a/src/misc/9p.scm +++ b/src/misc/9p.scm @@ -1,12 +1,11 @@ #! /usr/bin/gosh -;; -;; Neale Pickett wrote this. -;; +;; Description: 9p implementation in Scheme +;; Author: Neale Pickett ;; This uses gauche's networking stuff, but no other gauche stuff. It -;; should be simple to substitute your implementation's networking -;; procedures. +;; should be possible to substitute your implementation's networking +;; procedures without too much effort. (use gauche.net) (require-extension (srfi 1 4 8 9)) diff --git a/src/misc/Jamfile b/src/misc/Jamfile new file mode 100644 index 0000000..a40e5d3 --- /dev/null +++ b/src/misc/Jamfile @@ -0,0 +1,4 @@ +SubDir TOP src misc ; + +Webify index.mdwn ; +AutoIndex index.mdwn : index.head.mdwn : 9p.scm ; diff --git a/src/misc/Makefile b/src/misc/Makefile deleted file mode 100644 index 5f98566..0000000 --- a/src/misc/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -all: dwm-config.h spamfairy.py mail-expire.sh gourmet.sh deliver.sh - -COPY = cp $< $@ - -dwm-config.h: $(HOME)/opt/src/dwm/config.h - $(COPY) - -spamfairy.py: /usr/local/bin/spamfairy - $(COPY) - -mail-expire.sh: /usr/local/bin/mail-expire - $(COPY) - -gourmet.sh: /usr/local/bin/gourmet - $(COPY) - -deliver.sh: /usr/local/bin/deliver - $(COPY) \ No newline at end of file diff --git a/src/misc/index.head.mdwn b/src/misc/index.head.mdwn new file mode 100644 index 0000000..d391d97 --- /dev/null +++ b/src/misc/index.head.mdwn @@ -0,0 +1,2 @@ +Title: Miscellaneous hacks + diff --git a/src/postscript/Jamfile b/src/postscript/Jamfile new file mode 100644 index 0000000..2ab57ad --- /dev/null +++ b/src/postscript/Jamfile @@ -0,0 +1,4 @@ +SubDir TOP src postscript ; + +Webify index.mdwn ; +AutoIndex index.mdwn : index.head.mdwn : alice.ps banner.ps emergency-card.ps graph-paper.ps logo.ps page_dimensions.ps ruled-paper.ps skel.ps ; \ No newline at end of file diff --git a/src/postscript/Makefile b/src/postscript/Makefile deleted file mode 100644 index e5078f4..0000000 --- a/src/postscript/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -FILES = alice.ps banner.ps emergency-card.ps graph-paper.ps logo.ps -FILES += page_dimensions.ps resume.ps ruled-paper.ps skel.ps - -TARGETS += index.html - -include ../../Makefile - -.INTERMEDIATE: index.txt -index.txt: index.dirlist $(FILES) - $(DIRLIST) $(FILES) > $@ - -%.png: %.ps - pstopnm -portrait -xmax 600 -stdout $< | pnmscale -x 300 | pnmtopng > $@ diff --git a/src/postscript/index.head.mdwn b/src/postscript/index.head.mdwn new file mode 100644 index 0000000..0aa85f1 --- /dev/null +++ b/src/postscript/index.head.mdwn @@ -0,0 +1,5 @@ +Title: PostScript Hacks + +One morning I woke up wondering, "how difficult could PostScript really be?" + +Answer: Not very. diff --git a/src/postscript/index.html b/src/postscript/index.html deleted file mode 100644 index e7c4b89..0000000 --- a/src/postscript/index.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - PostScript Hacks - - - - -

    - - Neale Pickett -

    - -
    -

    PostScript Hacks -

    - -

    Here are some little programs that are either too small or too -self-explanatory to deserve their own web pages.

    - -
    -
    alice.ps (19k)
    -
    Alice in DIGITALand -- an example application of skel.ps
    -
    banner.ps (2.1k)
    -
    Boilerplate for multi-page banners
    -
    emergency-card.ps (11k)
    -
    Emergency card
    -
    graph-paper.ps (1.1k)
    -
    A sheet of graph paper
    -
    logo.ps (1.1k)
    -
    Some functions to make PostScript feel like LOGO
    -
    page_dimensions.ps (2.1k)
    -
    Displays dimensions of the page, and where your printer clips.
    -
    resume.ps (13k)
    -
    Résumé
    -
    ruled-paper.ps (2.1k)
    -
    A sheet of ruled paper
    -
    skel.ps (5.2k)
    -
    Skeleton for typesetting in PostScript.
    -
    - -
    - - - - \ No newline at end of file diff --git a/src/python.mdwn b/src/python.mdwn deleted file mode 100644 index 7009921..0000000 --- a/src/python.mdwn +++ /dev/null @@ -1,3 +0,0 @@ -[[!meta title="Python hacks"]] - -[[!map pages="src/python/*" show="description"]] diff --git a/src/python/Jamfile b/src/python/Jamfile new file mode 100644 index 0000000..c3a45d2 --- /dev/null +++ b/src/python/Jamfile @@ -0,0 +1,6 @@ +SubDir TOP src python ; + +Webify index.mdwn ; +AutoIndex index.mdwn : index.head.mdwn : htmlpp.py ndstrunc.py snpplib.py spampot.py watch.py spamfairy.py mail-expire.py ; +Copy spamfairy.py : /usr/local/bin/spamfairy ; +Copy mail-expire.py : /usr/local/bin/mail-expire ; diff --git a/src/python/index.head.mdwn b/src/python/index.head.mdwn new file mode 100644 index 0000000..c54e246 --- /dev/null +++ b/src/python/index.head.mdwn @@ -0,0 +1,3 @@ +Title: Python hacks + +Here's some junk I did in Python. diff --git a/src/python/ndstrunc.py b/src/python/ndstrunc.py index 3d9c350..30fff6b 100755 --- a/src/python/ndstrunc.py +++ b/src/python/ndstrunc.py @@ -1,6 +1,6 @@ #! /usr/bin/python -"""ndstrunc -- Trims .nds ROM files.""" +### ndstrunc -- Trims .nds ROM files import struct diff --git a/src/xss.mdwn b/src/xss.mdwn index f57aa18..08af411 100644 --- a/src/xss.mdwn +++ b/src/xss.mdwn @@ -1,4 +1,5 @@ -[[!meta title="xss: X Screensaver Construction Kit"]] +Title: xss: X Screensaver Construction Kit +Author: Neale Pickett [xss](http://woozle.org/~neale/src/xss) is a suite of X screensaver utilities. You can use shell scripts to glue the tools together to @@ -104,8 +105,3 @@ else like the rest of the programs, which is why I wrote them. I lifted some code from `beforelight` from the X11 distribution, and from `slock` from [suckless.org](http://suckless.org/). Both have a BSD/X11-like license. - - ------- - -Neale Pickett diff --git a/template.xml b/template.xml new file mode 100644 index 0000000..c38c5ea --- /dev/null +++ b/template.xml @@ -0,0 +1,29 @@ + + + + + TITLE + + + + + + +

    TITLE

    +divert(1) + + +
    + Neale Pickett <neale@woozle.org> +
    + + +divert(0) diff --git a/toys.mdwn b/toys.mdwn deleted file mode 100644 index 7d56015..0000000 --- a/toys.mdwn +++ /dev/null @@ -1,14 +0,0 @@ -[[!meta title="Toys"]] - -Some various junk I've done. Maybe you'll find it amusing. Maybe -you'll just wonder why I spend so much time on this garbage. - -* This [A Mind Forever Voyaging Decoder](amfv-decoder.cgi) is the sort - of thing where you'll only know what it is if you have a need for it. -* Play [a fun game](fungame)! -* Or you could play [robotfindskitten](robotfindskitten.cgi), which is - also fun! -* If you need to write someone a letter but really don't want to, try my - [smalltalk generator](smalltalk.cgi). -* Maybe you'd rather see a [magic trick](omg-magic)? -* How about some [Internet Reiki](reiki)? diff --git a/toys/Jamfile b/toys/Jamfile new file mode 100644 index 0000000..3049b14 --- /dev/null +++ b/toys/Jamfile @@ -0,0 +1,3 @@ +SubDir TOP toys ; + +Webify index.mdwn reiki.mdwn omg-magic.mdwn fungame.mdwn ; \ No newline at end of file diff --git a/toys/omg-magic/1.png b/toys/cards/1.png similarity index 100% rename from toys/omg-magic/1.png rename to toys/cards/1.png diff --git a/toys/omg-magic/10.png b/toys/cards/10.png similarity index 100% rename from toys/omg-magic/10.png rename to toys/cards/10.png diff --git a/toys/omg-magic/11.png b/toys/cards/11.png similarity index 100% rename from toys/omg-magic/11.png rename to toys/cards/11.png diff --git a/toys/omg-magic/12.png b/toys/cards/12.png similarity index 100% rename from toys/omg-magic/12.png rename to toys/cards/12.png diff --git a/toys/omg-magic/13.png b/toys/cards/13.png similarity index 100% rename from toys/omg-magic/13.png rename to toys/cards/13.png diff --git a/toys/omg-magic/14.png b/toys/cards/14.png similarity index 100% rename from toys/omg-magic/14.png rename to toys/cards/14.png diff --git a/toys/omg-magic/15.png b/toys/cards/15.png similarity index 100% rename from toys/omg-magic/15.png rename to toys/cards/15.png diff --git a/toys/omg-magic/16.png b/toys/cards/16.png similarity index 100% rename from toys/omg-magic/16.png rename to toys/cards/16.png diff --git a/toys/omg-magic/17.png b/toys/cards/17.png similarity index 100% rename from toys/omg-magic/17.png rename to toys/cards/17.png diff --git a/toys/omg-magic/18.png b/toys/cards/18.png similarity index 100% rename from toys/omg-magic/18.png rename to toys/cards/18.png diff --git a/toys/omg-magic/19.png b/toys/cards/19.png similarity index 100% rename from toys/omg-magic/19.png rename to toys/cards/19.png diff --git a/toys/omg-magic/2.png b/toys/cards/2.png similarity index 100% rename from toys/omg-magic/2.png rename to toys/cards/2.png diff --git a/toys/omg-magic/20.png b/toys/cards/20.png similarity index 100% rename from toys/omg-magic/20.png rename to toys/cards/20.png diff --git a/toys/omg-magic/21.png b/toys/cards/21.png similarity index 100% rename from toys/omg-magic/21.png rename to toys/cards/21.png diff --git a/toys/omg-magic/22.png b/toys/cards/22.png similarity index 100% rename from toys/omg-magic/22.png rename to toys/cards/22.png diff --git a/toys/omg-magic/23.png b/toys/cards/23.png similarity index 100% rename from toys/omg-magic/23.png rename to toys/cards/23.png diff --git a/toys/omg-magic/24.png b/toys/cards/24.png similarity index 100% rename from toys/omg-magic/24.png rename to toys/cards/24.png diff --git a/toys/omg-magic/25.png b/toys/cards/25.png similarity index 100% rename from toys/omg-magic/25.png rename to toys/cards/25.png diff --git a/toys/omg-magic/26.png b/toys/cards/26.png similarity index 100% rename from toys/omg-magic/26.png rename to toys/cards/26.png diff --git a/toys/omg-magic/27.png b/toys/cards/27.png similarity index 100% rename from toys/omg-magic/27.png rename to toys/cards/27.png diff --git a/toys/omg-magic/28.png b/toys/cards/28.png similarity index 100% rename from toys/omg-magic/28.png rename to toys/cards/28.png diff --git a/toys/omg-magic/29.png b/toys/cards/29.png similarity index 100% rename from toys/omg-magic/29.png rename to toys/cards/29.png diff --git a/toys/omg-magic/3.png b/toys/cards/3.png similarity index 100% rename from toys/omg-magic/3.png rename to toys/cards/3.png diff --git a/toys/omg-magic/30.png b/toys/cards/30.png similarity index 100% rename from toys/omg-magic/30.png rename to toys/cards/30.png diff --git a/toys/omg-magic/31.png b/toys/cards/31.png similarity index 100% rename from toys/omg-magic/31.png rename to toys/cards/31.png diff --git a/toys/omg-magic/32.png b/toys/cards/32.png similarity index 100% rename from toys/omg-magic/32.png rename to toys/cards/32.png diff --git a/toys/omg-magic/33.png b/toys/cards/33.png similarity index 100% rename from toys/omg-magic/33.png rename to toys/cards/33.png diff --git a/toys/omg-magic/34.png b/toys/cards/34.png similarity index 100% rename from toys/omg-magic/34.png rename to toys/cards/34.png diff --git a/toys/omg-magic/35.png b/toys/cards/35.png similarity index 100% rename from toys/omg-magic/35.png rename to toys/cards/35.png diff --git a/toys/omg-magic/36.png b/toys/cards/36.png similarity index 100% rename from toys/omg-magic/36.png rename to toys/cards/36.png diff --git a/toys/omg-magic/37.png b/toys/cards/37.png similarity index 100% rename from toys/omg-magic/37.png rename to toys/cards/37.png diff --git a/toys/omg-magic/38.png b/toys/cards/38.png similarity index 100% rename from toys/omg-magic/38.png rename to toys/cards/38.png diff --git a/toys/omg-magic/39.png b/toys/cards/39.png similarity index 100% rename from toys/omg-magic/39.png rename to toys/cards/39.png diff --git a/toys/omg-magic/4.png b/toys/cards/4.png similarity index 100% rename from toys/omg-magic/4.png rename to toys/cards/4.png diff --git a/toys/omg-magic/40.png b/toys/cards/40.png similarity index 100% rename from toys/omg-magic/40.png rename to toys/cards/40.png diff --git a/toys/omg-magic/41.png b/toys/cards/41.png similarity index 100% rename from toys/omg-magic/41.png rename to toys/cards/41.png diff --git a/toys/omg-magic/42.png b/toys/cards/42.png similarity index 100% rename from toys/omg-magic/42.png rename to toys/cards/42.png diff --git a/toys/omg-magic/43.png b/toys/cards/43.png similarity index 100% rename from toys/omg-magic/43.png rename to toys/cards/43.png diff --git a/toys/omg-magic/44.png b/toys/cards/44.png similarity index 100% rename from toys/omg-magic/44.png rename to toys/cards/44.png diff --git a/toys/omg-magic/45.png b/toys/cards/45.png similarity index 100% rename from toys/omg-magic/45.png rename to toys/cards/45.png diff --git a/toys/omg-magic/46.png b/toys/cards/46.png similarity index 100% rename from toys/omg-magic/46.png rename to toys/cards/46.png diff --git a/toys/omg-magic/47.png b/toys/cards/47.png similarity index 100% rename from toys/omg-magic/47.png rename to toys/cards/47.png diff --git a/toys/omg-magic/48.png b/toys/cards/48.png similarity index 100% rename from toys/omg-magic/48.png rename to toys/cards/48.png diff --git a/toys/omg-magic/49.png b/toys/cards/49.png similarity index 100% rename from toys/omg-magic/49.png rename to toys/cards/49.png diff --git a/toys/omg-magic/5.png b/toys/cards/5.png similarity index 100% rename from toys/omg-magic/5.png rename to toys/cards/5.png diff --git a/toys/omg-magic/50.png b/toys/cards/50.png similarity index 100% rename from toys/omg-magic/50.png rename to toys/cards/50.png diff --git a/toys/omg-magic/51.png b/toys/cards/51.png similarity index 100% rename from toys/omg-magic/51.png rename to toys/cards/51.png diff --git a/toys/omg-magic/52.png b/toys/cards/52.png similarity index 100% rename from toys/omg-magic/52.png rename to toys/cards/52.png diff --git a/toys/omg-magic/53.png b/toys/cards/53.png similarity index 100% rename from toys/omg-magic/53.png rename to toys/cards/53.png diff --git a/toys/omg-magic/54.png b/toys/cards/54.png similarity index 100% rename from toys/omg-magic/54.png rename to toys/cards/54.png diff --git a/toys/omg-magic/6.png b/toys/cards/6.png similarity index 100% rename from toys/omg-magic/6.png rename to toys/cards/6.png diff --git a/toys/omg-magic/7.png b/toys/cards/7.png similarity index 100% rename from toys/omg-magic/7.png rename to toys/cards/7.png diff --git a/toys/omg-magic/8.png b/toys/cards/8.png similarity index 100% rename from toys/omg-magic/8.png rename to toys/cards/8.png diff --git a/toys/omg-magic/9.png b/toys/cards/9.png similarity index 100% rename from toys/omg-magic/9.png rename to toys/cards/9.png diff --git a/toys/crunt.cgi b/toys/crunt.cgi new file mode 100755 index 0000000..a801fe0 --- /dev/null +++ b/toys/crunt.cgi @@ -0,0 +1,31 @@ +#! /bin/sh + +randint () { + seq $1 $2 | shuf -n 1 +} + +crunt () { + shuf -n 1 <' + crunts=$(randint 200 500) + babies=$(expr \( $crunts \* 3 \) / 4) + + while [ $crunts -gt 0 ]; do + crunt + crunts=$(expr $crunts - 1) + done + while [ $babies -gt 0 ]; do + echo crunt + babies=$(expr $babies - 1) + done + echo 'CRUNT!' + echo '

    ' +) | m4 -DTITLE=crunt ../template.xml - diff --git a/toys/crunt.php b/toys/crunt.php deleted file mode 100644 index 871048e..0000000 --- a/toys/crunt.php +++ /dev/null @@ -1,20 +0,0 @@ - - -crunt - - - 7)) { - print "CRUNT "; - } else { - print "crunt "; - } -} -print "CRUNT!"; -?> - - \ No newline at end of file diff --git a/toys/fungame.mdwn b/toys/fungame.mdwn index 8a3c8d9..0786dfd 100644 --- a/toys/fungame.mdwn +++ b/toys/fungame.mdwn @@ -1,4 +1,4 @@ -[[!meta title="Fun Game"]] +Title: Fun Game diff --git a/toys/index.mdwn b/toys/index.mdwn new file mode 100644 index 0000000..4a4ca05 --- /dev/null +++ b/toys/index.mdwn @@ -0,0 +1,11 @@ +Title: Toys + +Here is some various junk I've done. Maybe you'll find it amusing. +Maybe you'll just wonder why I spend so much time on this garbage. + +* Play [a fun game](fungame.html)! +* If you need to write someone a letter but really don't want to, try my + [smalltalk generator](smalltalk.cgi). +* Maybe you'd rather see a [magic trick](omg-magic.html)? +* How about some [Internet Reiki](reiki.html)? +* [Crunt](crunt.cgi). diff --git a/toys/omg-magic.html b/toys/omg-magic.html deleted file mode 100644 index 2e6e918..0000000 --- a/toys/omg-magic.html +++ /dev/null @@ -1,72 +0,0 @@ -[[!meta title="OMG Magic!"]] - -

    - This is a clever magic trick. This paragraph should be filled with - suspenseful leadup to waste your time and get you TOTALLY PUMPED for - this AWESOME MAGIC TRICK that was created by some famous and/or - mystical person and now it's coming directly to you on the - Internets! Can you believe it! -

    - -

    - Pick a card. Stare at it long enough to memorize what card you've - picked, try to burn it into you mind. Don't worry, take your time, - I'll wait. -

    - -
    - card - card - card - card - card -
    - -

    - When you've memorized your card, you may proceed to - the next page. -

    - -
    - - -

    OMG Magic!

    - -

    - Do you remember your card? I'm going to yak at you for a little while - to make you spend some time doing something other than focusing on - those cards. This is called redirection and it's a - fundamental part of most magic tricks. The fact that it works even in - a web page says more about humanity than you in particular, so don't - feel bad. -

    - -

    - Ready to have you mind blown? Let's go! -

    - -
    - - -

    OMG Magic!

    - -

    - I have removed your card from the hand! -

    - -
    - card - card - card - card -
    - -

    - Did it work? -

    - -

    - OMG Magic! -

    - -
    diff --git a/toys/omg-magic.mdwn b/toys/omg-magic.mdwn new file mode 100644 index 0000000..e30d166 --- /dev/null +++ b/toys/omg-magic.mdwn @@ -0,0 +1,58 @@ +Title: OMG Magic! + +This is a clever magic trick. This paragraph should be filled with +suspenseful leadup to waste your time and get you TOTALLY PUMPED for +this AWESOME MAGIC TRICK that was created by some famous and/or mystical +person and now it's coming *directly to you* on the Internets! Can you +believe it! + + +Pick a card. Stare at it long enough to memorize what card you've +picked, try to burn it into you mind. Don't worry, take your time, I'll +wait. + +
    + card + card + card + card + card +
    + +When you've memorized your card, you may proceed to +the next page. + +
    + + +OMG Magic! +========== + +Do you remember your card? I'm going to yak at you for a little while +to make you spend some time doing something other than focusing on those +cards. This is called *redirection* and it's a fundamental part of most +magic tricks. The fact that it works even in a web page says more about +humanity than you in particular, so don't feel bad. + +Ready to have you mind blown? Let's go! + +
    + + +OMG Magic! +========== + +I have removed your card from the hand! + +
    + card + card + card + card +
    + +Did it work? + +OMG Magic! + +
    diff --git a/toys/smalltalk.cgi b/toys/smalltalk.cgi new file mode 100755 index 0000000..bf812ea --- /dev/null +++ b/toys/smalltalk.cgi @@ -0,0 +1,112 @@ +#! /bin/sh + +intro () { + shuf -n 1 <