create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
package br.com.mdias.rponte.signature; | |
import java.util.Base64; | |
/** | |
* Represents a signed XML | |
*/ | |
public class SignedXml { | |
private String content; |
import * as asn1js from 'asn1js'; | |
import { getCrypto, getAlgorithmParameters, CertificationRequest, AttributeTypeAndValue } from 'pkijs/build' | |
import { arrayBufferToString, toBase64 } from 'pvutils'; | |
//https://github.com/PeculiarVentures/PKI.js/blob/31c10e9bb879cac59d710102adf4fd7bd61cd66c/src/CryptoEngine.js#L1300 | |
const hashAlg = 'SHA-256' | |
const signAlg = 'ECDSA' | |
/** | |
* @example | |
* createPKCS10({ enrollmentID: 'user1', organizationUnit: 'Marketing', organization: 'Farmer Market', state: 'M', country: 'V' }) |
pragma solidity >=0.4.22 <0.7.0; | |
/** | |
* @title Storage | |
* @dev Store & retreive value in a variable | |
*/ | |
contract Storage { | |
uint256 number; |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
docker exec -i mysql_container mysqldump -uroot -proot --databases database_name --skip-comments > /path/to/my/dump.sql
dump.sql
file in your host machine. Awesome, eh?--compact
on your dump. This will make MySQL check your constraints which will cause troubles when reading your file (damm you MySQL). And don't use --force
to fix this scenario: recreate your dump without --compact
¯_(ツ)_/¯# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE > backup.sql | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | gzip > backup.sql.gz | |
docker exec CONTAINER /usr/bin/mysqldump -u root -pPASSWORD DATABASE | bzip2 > backup.sql.bz2 | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
gunzip < backup.sql.gz | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE | |
bunzip2 < backup.sql.bz2 | docker exec -i CONTAINER /usr/bin/mysql -u root -pPASSWORD DATABASE |
version: '2' | |
networks: | |
fabric: | |
services: | |
peer0.org3.example.com: | |
extends: | |
file: docker-compose-base.yml | |
service: peer |
version: '2' | |
networks: | |
fabric: | |
services: | |
peer0.org2.example.com: | |
extends: | |
file: docker-compose-base.yml | |
service: peer |
version: '2' | |
networks: | |
fabric: | |
services: | |
peer0.org1.example.com: | |
extends: | |
file: docker-compose-base.yml | |
service: peer |