distorted-bits
9 years agomkaptsrc: Use `local' for tracking paintedness of tags. master
Mark Wooding [Wed, 30 Apr 2014 17:59:11 +0000 (18:59 +0100)]
mkaptsrc: Use `local' for tracking paintedness of tags.

Apparently it works for arbitrary lvalues, so that's good.

9 years agomkaptsrc: Perl's scoping for named subroutines is bobbins.
Mark Wooding [Wed, 30 Apr 2014 17:44:41 +0000 (18:44 +0100)]
mkaptsrc: Perl's scoping for named subroutines is bobbins.

Nested named subroutines don't capture their lexical environment
properly on subsequent calls to the enclosing subroutine.  This is
obviously a bug.

9 years agomkaptsrc: Perl's scoping for `my' variables is bobbins.
Mark Wooding [Wed, 30 Apr 2014 17:42:55 +0000 (18:42 +0100)]
mkaptsrc: Perl's scoping for `my' variables is bobbins.

The scope for a `my' variable doesn't begin until the next statement,
which is obviously stupid.

10 years agodo-slaves: Handle backslashes correctly.
Mark Wooding [Fri, 14 Jun 2013 23:07:12 +0000 (00:07 +0100)]
do-slaves: Handle backslashes correctly.

10 years agomkaptsrc: Been in service for a while, but now worth distributing.
Mark Wooding [Fri, 14 Jun 2013 09:36:47 +0000 (10:36 +0100)]
mkaptsrc: Been in service for a while, but now worth distributing.

10 years agoclaim-dir, claim-mem-dir: Superceded by machinery in `distorted-keys'.
Mark Wooding [Fri, 14 Jun 2013 09:35:57 +0000 (10:35 +0100)]
claim-dir, claim-mem-dir: Superceded by machinery in `distorted-keys'.

11 years agodo-slaves: Rewrite output path to prevent buffering of stderr.
Mark Wooding [Fri, 8 Feb 2013 09:24:18 +0000 (09:24 +0000)]
do-slaves: Rewrite output path to prevent buffering of stderr.

12 years agoclaim-dir, claim-mem-dir: userv gadget for claiming directories.
Mark Wooding [Sat, 3 Sep 2011 21:42:07 +0000 (22:42 +0100)]
claim-dir, claim-mem-dir: userv gadget for claiming directories.

Suppose there's a part of the filesystem namespace that you want users
to be able to claim bits of.  The usual approach is to make the top
directory of the subtree be world-writable and sticky, but this causes
no end of trouble: there's potential contention for the namespace, which
leads to security problems.

These tools provide an alternative approach: a userv service which makes
a directory named after and owned by the calling user, and with
restrictive permissions.  It doesn't set a group for the new directory,
but the caller can do that.

12 years agofetch-unpack-archive: New program for the mix.
Mark Wooding [Sat, 13 Aug 2011 19:02:26 +0000 (20:02 +0100)]
fetch-unpack-archive: New program for the mix.

12 years agoSome random scripts which need a home.
Mark Wooding [Sun, 10 Jul 2011 22:23:19 +0000 (23:23 +0100)]
Some random scripts which need a home.