Given that your key has expired.
$ gpg --list-keys
$ gpg --edit-key KEYID
Use the expire command to set a new expire date:
| Explanation file: db.js | |
| This code imports the mongoose library which allows to connect to a MongoDB database. | |
| There are two URIs defined to connect to two different databases: MONGO_URI and MOBILE_URI. | |
| Each URI contains connection information to a remote MongoDB database, including user credentials. | |
| The connectDBs function uses the mongoose.createConnection method to create connections to these two | |
| databases using the respective URIs. The useUnifiedTopology and useNewUrlParser options are set to enable the new | |
| unified topology policy and use MongoDB's new URL parser, respectively. | |
| The function returns an object that contains the connections to these two databases as qrCodeDb and userDB properties. |
| import EIP712Domain from "eth-typed-data"; | |
| import BigNumber from "bignumber.js"; | |
| import * as ethUtil from 'ethereumjs-util'; | |
| import { ethers } from "ethers"; | |
| import axios from "axios"; | |
| /* | |
| * Safe relay service example | |
| * * * * * * * * * * * * * * * * * * * */ |
| ```sql | |
| CREATE USER 'login'@'localhost' IDENTIFIED BY 'pass'; | |
| GRANT SELECT,UPDATE,INSERT ON dbname.* TO 'login'@'localhost'; | |
| GRANT ALL PRIVILEGES ON dbname.* TO 'login'@'localhost'; | |
| FLUSH PRIVILEGES; | |
| ``` | |
| Если: An exception occurred in driver: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client | |
| То: ALTER USER 'zabbix_yurchenko'@'localhost' IDENTIFIED WITH mysql_native_password BY 'zabbix_yurchenko'; |
| import certifi | |
| from dynaconf import settings | |
| from confluent_kafka.avro import AvroProducer | |
| from confluent_kafka import Consumer | |
| BASE_CONFIG = { | |
| 'bootstrap.servers': settings.KAFKA_PRIMARY_BOOTSTRAP_SERVERS, | |
| 'group.id': 'integrated-tests', | |
| 'client.id': 'integrated-tests', |
| const registryUrl = 'http://schema-registry:8081' | |
| const avro = require('avsc') | |
| const registry = require('avro-schema-registry')(registryUrl) | |
| const kafka = require('kafka-node') | |
| const client = new kafka.KafkaClient({ kafkaHost: 'kafka:9092' }) | |
| const topic = { | |
| topic: 'actor7', | |
| offset: 3695 |
A Pen by Harshit Anand on CodePen.
A Pen by Harshit Anand on CodePen.