It’s documented here: http://micheljansen.org/blog/entry/182. However, I only found this post after learning each lesson individually. I wanted to set up a \\server\Public share that anyone on the network could connect to. Certain users can write, but everyone can read. I tried enabling in (and changed the file/directory masks, so anyone can read by default): [cc_ini] […]
I’m using this to limit the number of processes that Ampache spawns. Sometimes, it goes hay-wire. [cc_bash] #!/bin/sh cmd=”$1″ lim=”$2″ user=”$3″ || “www” numprocs=ps -U www | grep “$cmd” | wc -l echo “Found $numprocs comparing to $lim” if [ “$numprocs” -gt “$lim” ]; then echo “found $numprocs processes” killall aacplusenc fi [/cc_bash] Be the […]
I’m using git to keep snapshots of large files. These are outputs of long runs of tools, that would take a long time to re-construct. Using git has the benefit of true version control on the input design files, and an archive of the large, time-consuming outputs. The idea here, however, is to save time, […]
Up to now, I’ve been using TiddlyWeb as a server-hosted version of TiddlyWiki. This is a fraction of what’s possible with TiddlyWeb. One can create bags which are self-contained stores of tiddlers. One can combine these bags using recipes. Different users can have access to different bags and to different recipes. By default, TiddlyWebWiki comes […]
I needed to create a script that runs a regression test. I intended to schedule this with a cron job. However, I found that sometimes, my cron jobs would collide with each other. So, I looked to Linux’ command to create a file lock as a semaphore. Here’s the incantation: [cc_bash] # if we’re already […]
The default vim has a matchpairs option which matches pairs of single bytes. However, I have a file which has a lot of nested conditions, and the language requires begin/end pairs for multi-line conditionals. I know I have more begin statements than end statements. So, I need help from vim in matching these up. As […]