Skip to content

Instantly share code, notes, and snippets.

@colmjude
Created November 25, 2010 17:47
Show Gist options
  • Save colmjude/715701 to your computer and use it in GitHub Desktop.
Save colmjude/715701 to your computer and use it in GitHub Desktop.
Pull tiddlyspace tiddlers down
#!/bin/sh
# cheap and cheerful pushing of files to TiddlySpace,
# authorization taken from the variable TIDDLYSPACE_AUTH which for me is:
# export TIDDLYSPACE_AUTH='-u myuser:mypass'
# usage: sts spacename file1 file2 ..
space="$1" ; shift
tiddler="$1" ;
# public/private
pp=public
set -x
curl -X GET http://${space}.tiddlyspace.com/bags/${space}_$pp/tiddlers/${tiddler}.txt -H "Accept: application/json" > $tiddler.tid
set +x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment