Skip to content

Instantly share code, notes, and snippets.

View pads's full-sized avatar

Ben Paddock pads

View GitHub Profile
@pads
pads / ts-import-space.sh
Last active December 16, 2015 15:59
Export tiddlers from the public and private bags of a space belonging to one instance of TiddlySpace and import them onto a different instance of TiddlySpace.
#!/bin/sh
USAGE="Usage: `basename $0` <src_space_url> <src_space> <src_user>
<src_pwd> <dest_space_url> <dest_space> <dest_user> <dest_pwd>
Overwrite SRC_TS_CHALLENGER and/or DEST_TS_CHALLENGER
to use a custom authentication method.
The default is tiddlywebplugins.tiddlyspace.cookie_form
"
@pads
pads / configure_npm.sh
Last active December 15, 2015 02:39
Various scripts to install TiddlySpace on a barebones Ubuntu server.
#!/bin/sh
#
# Run this script before installing twikifier/twsock and after installing node
#
npm config set registry http://registry.npmjs.org/
# Omit this step if a proxy is not needed
npm config set proxy http://<host>:<port>
@pads
pads / Arguments assignment fix
Created November 29, 2012 16:59
@FND's suggested fix for arguments assignment
var args = Array.prototype.slice.apply(arguments);
args[2] = false;