Skip to content

Instantly share code, notes, and snippets.

James emshan

Block or report user

Report or block emshan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@emshan
emshan / hyperledger-create.user
Created Jul 19, 2019
create user using fabric-ca-client/ verifying id through client identity chaincode(CID)
View hyperledger-create.user
# for attribute based access control, insert :ecert options in the attibutes
fabric-ca-client register \
--id.name user \
--id.secret password \
--id.type user \
--id.affiliation Org1 \
--id.attrs 'attr=true:ecert, hf.Affiliation=Org1:ecert'
# for enrollment.attrs, attributes named gets copied to ecert
# opt means the attributes can be optional
@emshan
emshan / shelldemon.sh
Last active Jul 9, 2018
script for running every 5 sec
View shelldemon.sh
nohup watch -n5 'bash script.sh' &
@emshan
emshan / mapStringValue.ts
Last active Feb 10, 2018
object convert or map to string : value js / ts
View mapStringValue.ts
//{ 'c/f/l/k': 1, 'c/f/l/d': 2, 'c/f/w': 2, 'c/d': 1, 'c/e': 2 }
//mapStringValue({
// c: {
// d:1,
// e:2,
// f: {
// w: 2,
// l: {
// k:1,
// d:2
You can’t perform that action at this time.