Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Oberstein oberstet

View GitHub Profile
View gist:ac6d427d805efb7fbc76a07c00deb578
oberstet@intel-nuci7:~/scm/crossbario/crossbar$ ~/cpy391/bin/python3 -m venv ~/cpy391_9
oberstet@intel-nuci7:~/scm/crossbario/crossbar$ source ~/cpy391_9/bin/activate
(cpy391_9) oberstet@intel-nuci7:~/scm/crossbario/crossbar$ cd ~
(cpy391_9) oberstet@intel-nuci7:~$ pip install crossbar
Collecting crossbar
Downloading crossbar-21.2.1-py2.py3-none-any.whl (524 kB)
|████████████████████████████████| 524 kB 3.4 MB/s
Processing ./.cache/pip/wheels/40/5c/a5/e6d629446a6a687ba328c55f1589234c29b99ef35b1a65dbaa/cbor-1.0.0-cp39-cp39-linux_x86_64.whl
Collecting pyyaml>=4.2b4
Using cached PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl (630 kB)
View gist:91ca194ccd6e283fccdbc3eb32cdfe85
(cpy391_6) oberstet@intel-nuci7:~/scm/s-things/thingcloud$ make cfxshell_show_database cfxshell_export_database
sudo `which crossbarfx` shell show database .teststack/master/.crossbar/.db-mrealm-*
Database slots [dbpath="/home/oberstet/scm/s-things/thingcloud/.teststack/master/.crossbar/.db-mrealm-0e3e6ffd-1092-4d31-8716-341666867aef"]:
Slot 7099565b-7b44-4891-a0c8-83c7dbb60883 using DB table class cfxdb.mrealmschema.ApplicationRealms
Slot 89f3073a-32d5-497e-887d-7e930e9c26e6 using DB table class cfxdb.mrealmschema.IndexApplicationRealmByName
Slot 0275b858-890c-4879-945c-720235b093d7 using DB table class cfxdb.mrealmschema.IndexApplicationRealmByWebCluster
Slot 9808cb0b-1b55-4b3f-858e-39004cb11135 using DB table class cfxdb.mrealmschema.Principals
View gist:b7dfe92e2e0ef78e66aa90ebad15072e
(cpy391_6) oberstet@intel-nuci7:~/scm/s-things/thinghub$ sudo lsusb -v -d 0x1235:0x0113
Bus 001 Device 011: ID 1235:0113 Focusrite-Novation
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
View gist:e954e0deaad0940375ae03e1aa55634c
oberstet@intel-nuci7:~$ ~/pypy3.7-v7.3.3-linux64/bin/pypy -m venv ~/pypy37_5
oberstet@intel-nuci7:~$ source ~/pypy37_5
bash: source: /home/oberstet/pypy37_5: ist ein Verzeichnis.
oberstet@intel-nuci7:~$ source ~/pypy37_5/bin/activate
(pypy37_5) oberstet@intel-nuci7:~$ cd scm/crossbario/txaio
(pypy37_5) oberstet@intel-nuci7:~/scm/crossbario/txaio$ git status
Auf Branch master
Ihr Branch ist auf demselben Stand wie 'origin/master'.
nichts zu committen, Arbeitsverzeichnis unverändert
View gist:2a1f559e2334dcbf5534bd7cec9fc45d
oberstet@intel-nuci7:~$ source ~/cpy391_4/bin/activate
(cpy391_4) oberstet@intel-nuci7:~$ cd scm/crossbario/autobahn-python/
(cpy391_4) oberstet@intel-nuci7:~/scm/crossbario/autobahn-python$ pip install .[all]
Processing /home/oberstet/scm/crossbario/autobahn-python
Requirement already satisfied: txaio>=20.4.1 in /home/oberstet/cpy391_4/lib/python3.9/site-packages (from autobahn==21.2.2.dev3) (20.12.1)
Requirement already satisfied: cryptography>=2.9.2 in /home/oberstet/cpy391_4/lib/python3.9/site-packages (from autobahn==21.2.2.dev3) (3.4.4)
Requirement already satisfied: hyperlink>=20.0.1 in /home/oberstet/cpy391_4/lib/python3.9/site-packages (from autobahn==21.2.2.dev3) (21.0.0)
Requirement already satisfied: zope.interface>=3.6.0 in /home/oberstet/cpy391_4/lib/python3.9/site-packages (from autobahn==21.2.2.dev3) (5.2.0)
View gist:8265647ef3f4a820b5a3c49506825e11
(cpy391_4) oberstet@intel-nuci7:~/scm/s-things/thingcloud$ make build
*************************************************************
flatc -o ./thingcloud/api/schema/ --binary --schema --bfbs-comments --bfbs-builtins ./thingcloud/api/idl/*.fbs
Generated Flatbuffers binary schema files:
./thingcloud/api/schema/
./thingcloud/api/schema/device.bfbs
./thingcloud/api/schema/firewall.bfbs
View gist:4d944cf3d3e05e880e05cb5243e79b88
(cpy391_4) oberstet@intel-nuci7:~/scm/s-things/thingcloud$ make build
*************************************************************
flatc -o ./thingcloud/api/schema/ --binary --schema --bfbs-comments --bfbs-builtins ./thingcloud/api/idl/*.fbs
Generated Flatbuffers binary schema files:
./thingcloud/api/schema/
./thingcloud/api/schema/device.bfbs
./thingcloud/api/schema/firewall.bfbs
View gist:39bc57c0e6c2c36892952e3c93443c9f
ubuntu@aws-eu-central-1-network-0:~$ journalctl -u crossbarfx | grep -A2 "requests.exceptions.HTTPError: 429 Client Error"
Feb 09 04:56:40 aws-eu-central-1-network-0 unbuffer[2325]: requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://rinkeby.infura.io/v3/40c6959767364c2cb961bd389c738d98
Feb 09 04:56:40 aws-eu-central-1-network-0 unbuffer[2325]:
Feb 09 04:56:40 aws-eu-central-1-network-0 unbuffer[2325]: 2021-02-09T04:56:40+0000 [Router 11] Now processing blockchain block 8001227 ..
--
Feb 09 04:56:40 aws-eu-central-1-network-0 unbuffer[2325]: requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://rinkeby.infura.io/v3/40c6959767364c2cb961bd389c738d98
Feb 09 04:56:40 aws-eu-central-1-network-0 unbuffer[2325]:
Feb 09 04:56:40 aws-eu-central-1-network-0 unbuffer[2325]: 2021-02-09T04:56:40+0000 [Router 11] Now processing blockchain block 8001228 ..
--
Feb 09 04:56:41 aws-eu-central-1-network-0 unbuffer[2325]: requests.exceptions.HTTPErro
View gist:638db63fe56ebe3af190483ac8483551
terraform plan -var-file=./envs/st-dev.tfvars
module.st-aws-region-eu-central-1.aws_key_pair.st_admin_keypair: Refreshing state... [id=st_admin_keypair]
module.st-aws-region-eu-central-1.aws_efs_file_system.main: Refreshing state... [id=fs-7094b628]
module.st-aws-region-eu-central-1.aws_vpc.main: Refreshing state... [id=vpc-0769e377439b8c297]
module.st-aws-region-eu-central-1.aws_acm_certificate.sthngs_region_cert1: Refreshing state... [id=arn:aws:acm:eu-central-1:931347297591:certificate/842ae9ec-df1d-44f6-86d5-3992dfccc46b]
module.st-aws-global.aws_acm_certificate.sthngs_tls_cert4: Refreshing state... [id=arn:aws:acm:us-east-1:931347297591:certificate/cf6e491f-aeac-42db-8456-1064920278da]
module.st-aws-global.aws_acm_certificate.sthngs_tls_cert1: Refreshing state... [id=arn:aws:acm:us-east-1:931347297591:certificate/53e1a6b9-263d-4c33-bcdb-fb41374a87c4]
module.st-aws-global.aws_iam_role.master: Refreshing state... [id=master]
module.st-aws-global.aws_cloudfront_origin_access_identity.sthngs_download: Refres
View gist:c0da7574763f6facd9be67fd7cb010e3
(cpy391_1) oberstet@intel-nuci7:~/scm/crossbario/autobahn-python$ source ~/cpy391_2/bin/activate
(cpy391_2) oberstet@intel-nuci7:~/scm/crossbario/autobahn-python$ clear
(cpy391_2) oberstet@intel-nuci7:~/scm/crossbario/autobahn-python$ pip install .[asyncio,twisted,encryption,compress,serialization,scram]
Processing /home/oberstet/scm/crossbario/autobahn-python
Collecting txaio>=20.4.1
Using cached txaio-20.12.1-py2.py3-none-any.whl (30 kB)
Collecting cryptography>=2.9.2
Using cached cryptography-3.3.1-cp36-abi3-manylinux2010_x86_64.whl (2.6 MB)
Collecting hyperlink>=20.0.1