from cassandra.cqlengine import connection
from cassandra.cqlengine.management import create_keyspace_simple, sync_table
connection.setup(['127.0.0.1'], 'test')
create_keyspace_simple('test', 1)
from cassandra.cqlengine.models import Model, columns
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
class DeviceLocation(BaseModel): | |
"""Device defined location, based on IP address.""" | |
user_id = columns.UUID(primary_key=True) | |
device_id = columns.UUID(primary_key=True) | |
address = columns.Text(primary_key=True) # IP address with CIDR | |
type = columns.Text() # home/work/etc | |
country = columns.Text() | |
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
class PublicKey(BaseModel): | |
"""Contact public cryptographic keys model.""" | |
user_id = columns.UUID(primary_key=True) | |
resource_id = columns.UUID(primary_key=True) # clustering key | |
key_id = columns.UUID(primary_key=True) # clustering key | |
resource_type = columns.Text() | |
label = columns.Text() |
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
(.venv) tao~/dev/caliopen/go/src/github.com/CaliOpen/Caliopen/src/frontend/web_application(master↑1|✚2…) % yarn | |
yarn install v1.2.1 | |
[1/4] Resolving packages... | |
warning Resolution field "[email protected]" is incompatible with requested version "react@^15.6.1" | |
warning Resolution field "[email protected]" is incompatible with requested version "react-dom@^15.6.1" | |
[2/4] Fetching packages... | |
info [email protected]: The platform "linux" is incompatible with this module. | |
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. | |
info [email protected]: The platform "linux" is incompatible with this module. | |
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. |
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
In [25]: res.json() | |
Out[25]: | |
{'contact': {'additional_name': None, | |
'addresses': [], | |
'avatar': 'avatar.png', | |
'contact_id': 'bd724ec9-2746-4cf3-be11-eed0ed88d6e5', | |
'date_insert': '2015-12-19T12:15:50.284000', | |
'date_update': None, | |
'deleted': 0, | |
'emails': [], |
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
Verifying that +chamal is my blockchain ID. https://onename.com/chamal |
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
from caliopen.config import Configuration | |
from caliopen.core.config import includeme | |
pwd = os.path.dirname(os.path.realpath(__file__)) | |
DEFAULT_CONFIG_FILE = '%s/../../../../config/caliopen.yaml.template' % pwd | |
Configuration.load(os.environ.get('CALIOPEN_CONFIG', DEFAULT_CONFIG_FILE), | |
'global') | |
includeme() |
I hereby claim:
- I am gdchamal on github.
- I am chamal (https://keybase.io/chamal) on keybase.
- I have a public key whose fingerprint is 3A11 7218 7EF7 406F CBCE CFA6 0E68 C4F8 5D04 D8FC
To claim this, I am signing this object:
Caliopen Architecture Guide
Caliopen in this document refer to the technical messaging infrastructure developed to achieve Caliopen project aims.
Caliopen is designed as a scalable online platform for management of messages in many protocols. Mail and related protocols are the first implementation.
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
(.env)[mric@zen vagrant]$ diff Vagrantfile Vagrantfile.update | |
48c48 | |
< # config.vm.provider "virtualbox" do |vb| | |
--- | |
> config.vm.provider "virtualbox" do |vb| | |
53,54c53,54 | |
< # vb.customize ["modifyvm", :id, "--memory", "1024"] | |
< # end | |
--- | |
> vb.customize ["modifyvm", :id, "--memory", "2048"] |
NewerOlder