$ python3 -m venv venv
$ . venv/bin/activate
$ pip install js2py gunicorn
$ gunicorn app:app
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
from hook import register_import_hook | |
print('calling to register') | |
register_import_hook() | |
print('registered') | |
def later(): | |
import test_foo |
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 | |
USAGE="Usage: `basename $0` <src_space_url> <src_space> <src_user> <src_pwd> <dest_space_url> <dest_space> <dest_user> <dest_pwd>" | |
if [ $# -ne 8 ]; then | |
echo $USAGE >&2 | |
exit 1 | |
fi | |
SRC_SPACE_URL=$1 |
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
from tiddlyweb import control | |
from tiddlywebplugins.utils import get_store | |
from tiddlyweb.store import Store, NoBagError,NoTiddlerError | |
from tiddlyweb.model.bag import Bag | |
from tiddlyweb.model.recipe import Recipe | |
from tiddlyweb.model.tiddler import Tiddler | |
def mytest(environ, start_response): | |
start_response('200 OK', [ | |
('Content-Type', 'text/html; charset=utf-8') |
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
*.pyc |
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
from tiddlyweb.util import merge_config | |
from tiddlyweb.config import config as global_config | |
from tiddlywebconfig import config as custom_config | |
print "BEFORE: custom", custom_config["instance_tiddlers"] | |
print "BEFORE: global", global_config["instance_tiddlers"] | |
merge_config(global_config, custom_config) |
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 | |
# replace with all the various variables and what not | |
cmd="wget -q -O - http://tiddlyweb.com |uuencode /dev/stdout|\ | |
/usr/bin/mailx -s 'hello' [email protected]" | |
ssh -p 8022 heavy.peermore.com $cmd |
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
*.pyc |
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/bin/env python | |
""" | |
simplewiki instantiation | |
""" | |
import sys | |
from tiddlyweb.config import config |
NewerOlder