This file contains 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 script mounts an gocryptfs filesystem, starts a shell in the mounted | |
# directory, and then unmounts the filesystem when the shell exits. | |
# This is an equivalent of the cfssh utility for cfs. | |
# Contributed by David Rosenstrauch. | |
canonicalize() { | |
cd "$1" | |
pwd |
This file contains 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/env python3 | |
import plyvel | |
db = plyvel.DB('/tmp/test-reverse-iterator.db', create_if_missing=True) | |
db.put(b'aaa', b'1') | |
db.put(b'bbb', b'2') | |
# these pass: |
This file contains 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 python3.3 | |
from logging import getLogger | |
from tornado.ioloop import IOLoop | |
from tornado.options import parse_command_line | |
from tornado.httpclient import AsyncHTTPClient | |
from tornado.httputil import HTTPHeaders | |
from tornado.gen import coroutine |