create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| import tornado.httpserver, tornado.ioloop, tornado.options, tornado.web, os.path | |
| from tornado.options import define, options | |
| define("port", default=8888, help="run on the given port", type=int) | |
| class Application(tornado.web.Application): | |
| def __init__(self): | |
| handlers = [ | |
| (r"/", HomeHandler), | |
| (r"/upload", UploadHandler) | 
| # | |
| # Test of experimental Tornado feature for a streaming request body handler, see | |
| # https://github.com/nephics/tornado/commit/1bd964488926aac9ef6b52170d5bec76b36df8a6 | |
| # | |
| # | |
| # Client sending file to server | |
| # | |
| import tornado.httpclient as httpclient | 
| radon# cat /etc/systemd/system/mongodb.service | |
| [Unit] | |
| Description=MongoDB Server | |
| Wants=network.target | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| ExecStart=/usr/bin/mongod --config /etc/mongodb.conf | |
| User=mongodb | 
| from datetime import datetime | |
| from pymongo.connection import Connection | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.options | |
| import tornado.web | |
| from tornado.options import define, options | 
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@mbostock/fetch-progress | 
| from myapp.utils import set_current_user | |
| class CurrentUserMiddleware: | |
| def process_request(self, request): | |
| set_current_user(getattr(request, 'user', None)) |