Skip to content

Instantly share code, notes, and snippets.

View mrVanDalo's full-sized avatar

Ingolf Wagner mrVanDalo

View GitHub Profile
@kolja
kolja / daily.coffee
Last active December 18, 2015 09:59
cli to read and write "diary entries" to CouchDB
#!/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
@coderofsalvation
coderofsalvation / cachesamples.sh
Last active April 18, 2019 11:16
samplesort - converts audiosample-directories into symbolically linked trees sorted on tags (kick/hihat/etc)
#!/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