sudo apt-get install python3-pip
sudo pip3 install virtualenv
| Ursula - nucypher ursula run --dev --federated-only | |
| Alice - nucypher alice run --dev --federated-only --teacher 127.0.0.1:10151 | |
| Bob - nucypher bob run --dev --federated-only --teacher 127.0.0.1:10151 --controller-port 4000 | |
| Enrico - nucypher enrico run --policy-encrypting-key <Key from Policy Creation> --http-port 5000 | |
| Create Policy - | |
| POST | |
| localhost:8151/derive_policy_encrypting_key/<Label> |
| #!/usr/bin/env python | |
| import json | |
| import copy | |
| import sys | |
| import argparse | |
| from datetime import datetime, timedelta | |
| from subprocess import Popen, PIPE | |
| # dictionary of partiton names to variable generating functions |
| """ | |
| More details on the implementation and usage can be found at | |
| https://www.pyscoop.com/django-jsonfield-attributes-in-admin-filter/ | |
| """ | |
| from django.contrib import admin | |
| from django.core.exceptions import ImproperlyConfigured | |
| class JSONFieldFilter(admin.SimpleListFilter): |
Picking the right architecture = Picking the right battles + Managing trade-offs
| # -*- coding:utf-8 -*- | |
| from __future__ import absolute_import | |
| from __future__ import unicode_literals | |
| from __future__ import print_function | |
| import json | |
| import uuid | |
| import time | |
| import gevent |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream