sudo apt install --reinstall python3
sudo apt install --reinstall python
`` sudo update-alternatives --remove-all python
sudo apt install --reinstall python3
sudo apt install --reinstall python
`` sudo update-alternatives --remove-all python
| <?xml version="1.0" ?> | |
| <template encoding-version="1.1"> | |
| <description></description> | |
| <groupId>1e8778a8-015c-1000-c747-8273276bab45</groupId> | |
| <name>JSON Array to String List</name> | |
| <snippet> | |
| <processGroups> | |
| <id>51eb9288-0a70-311b-0000-000000000000</id> | |
| <parentGroupId>5454b790-94fe-3e28-0000-000000000000</parentGroupId> | |
| <position> |
| import ai.djl.modality.nlp.DefaultVocabulary; | |
| import ai.djl.modality.nlp.Vocabulary; | |
| import ai.djl.modality.nlp.bert.BertToken; | |
| import ai.djl.modality.nlp.bert.BertTokenizer; | |
| import ai.djl.modality.nlp.qa.QAInput; | |
| import ai.djl.ndarray.NDArray; | |
| import ai.djl.ndarray.NDList; | |
| import ai.djl.ndarray.NDManager; | |
| import ai.djl.translate.Batchifier; | |
| import ai.djl.translate.Translator; |
| apiVersion: v1 | |
| data: | |
| # TODO: replace with own minifi properties | |
| minifi.properties: | | |
| # Core Properties # | |
| nifi.version=0.11.0 | |
| nifi.flow.configuration.file=./conf/config.yml | |
| nifi.administrative.yield.duration=30 sec | |
| # If a component has no work to do (is "bored"), how long should we wait before checking again for work? | |
| nifi.bored.yield.duration=100 millis |
| # Use this script to test that your Telegram bot works. | |
| # | |
| # Install the dependency | |
| # | |
| # $ gem install telegram_bot | |
| # | |
| # Run the bot | |
| # | |
| # $ ruby bot.rb | |
| # |
| { | |
| "flowContents": { | |
| "identifier": "42063a31-a98b-319f-8617-2086e4b7f30b", | |
| "instanceIdentifier": "a7be953d-0186-1000-5378-dd26f8d2184c", | |
| "name": "Github_PR_Verification_Bot", | |
| "comments": "", | |
| "position": { | |
| "x": 589.4942055903919, | |
| "y": 191.17769189766898 | |
| }, |
| import avro.schema | |
| import io | |
| import os | |
| import requests | |
| from avro.io import DatumReader, BinaryDecoder | |
| from cachetools import TTLCache | |
| from kafka import KafkaConsumer | |
| # Kafka broker | |
| BROKERS = ['cdp.52.33.201.179.nip.io:9092'] |
| { | |
| "type": "record", | |
| "name": "FinTransactions", | |
| "fields": [ | |
| { "name": "ts", "type": "string" }, | |
| { "name": "account_id", "type": "string" }, | |
| { "name": "transaction_id", "type": "string" }, | |
| { "name": "amount", "type": "int" }, | |
| { "name": "lat", "type": "double" }, | |
| { "name": "lon", "type": "double" }, |
| # Requirements: kafka-python gssapi krbticket | |
| import os | |
| import time | |
| from kafka import KafkaConsumer, KafkaProducer | |
| from krbticket import KrbConfig, KrbCommand | |
| try: | |
| os.environ['KRB5CCNAME'] = '/tmp/krb5cc_<myusername>' | |
| kconfig = KrbConfig(principal='araujo', keytab='/path/to/<myusername>.keytab') | |
| KrbCommand.kinit(kconfig) |