This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/coffee | |
nopt = require 'nopt' | |
nano = require('nano')('http://localhost:5984/dailies') | |
optionDef = | |
"u": String # user | |
"m": String # Message | |
"l": Number | |
"t": [String, Array] # Tags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# this will build a database using the 'mlocate' package (see debian/ubuntu etc) | |
# make sure to set 'export LOCATE_PATH="/path/to/mlocate.db"' when using 'locate' | |
renice +19 -p $$ >/dev/null 2>&1 | |
ionice -c2 -n7 -p $$ >/dev/null 2>&1 | |
/usr/bin/updatedb --output /path/to/mlocate.db --local-path -U /path/to/your/samples |