Skip to content

Instantly share code, notes, and snippets.

View sharif2008's full-sized avatar
🎯
Focusing

Md. Shariful Islam sharif2008

🎯
Focusing
  • Dhaka
View GitHub Profile
@sharif2008
sharif2008 / bootsrap_class_list
Created October 2, 2016 05:35 — forked from geksilla/bootsrap_class_list
Bootstrap css class list
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
@sharif2008
sharif2008 / heroku_logs.md
Created April 6, 2018 13:38
Connection error on starting heroku (Node.js/Express + MongoLab)
@sharif2008
sharif2008 / stuns
Created June 1, 2018 11:20 — forked from yetithefoot/stuns
STUN+TURN servers list
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
@sharif2008
sharif2008 / README.md
Created October 21, 2018 11:24 — forked from pcan/README.md
Node.js plain TLS Client & Server, 2-way Cert Auth

Node.js TLS plain TLS sockets

This guide shows how to set up a bidirectional client/server authentication for plain TLS sockets.

Prepare certificates

Generate a Certificate Authority:

openssl req -new -x509 -days 9999 -keyout ca-key.pem -out ca-crt.pem
@sharif2008
sharif2008 / clean_code.md
Created September 22, 2019 03:46 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@sharif2008
sharif2008 / crypto-config.yaml
Created September 23, 2019 06:17 — forked from kctam/crypto-config.yaml
3node2channel setup
OrdererOrgs:
- Name: Orderer
Domain: example.com
Specs:
- Hostname: orderer
PeerOrgs:
- Name: Org1
Domain: org1.example.com
Template:
Count: 1
@sharif2008
sharif2008 / configtx.yaml
Created September 23, 2019 06:17 — forked from kctam/configtx.yaml
3node2channel setup
---
Organizations:
- &OrdererOrg
Name: OrdererOrg
ID: OrdererMSP
MSPDir: ./crypto-config/ordererOrganizations/example.com/msp
- &Org1
Name: Org1MSP
@sharif2008
sharif2008 / docker-compose-base.yml
Created September 23, 2019 06:19 — forked from kctam/docker-compose-base.yml
3node2channel setup
version: '2'
services:
orderer:
image: hyperledger/fabric-orderer
environment:
- CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE=deployment_fabric
- ORDERER_HOME=/var/hyperledger/orderer
- ORDERER_GENERAL_LOGLEVEL=debug
@sharif2008
sharif2008 / docker-compose-orderer.yml
Created September 23, 2019 06:19 — forked from kctam/docker-compose-orderer.yml
3node2channel setup
version: '2'
networks:
fabric:
services:
orderer.example.com:
extends:
file: docker-compose-base.yml
@sharif2008
sharif2008 / docker-compose-node1.yml
Created September 23, 2019 06:19 — forked from kctam/docker-compose-node1.yml
3node2channel setup
version: '2'
networks:
fabric:
services:
peer0.org1.example.com:
extends:
file: docker-compose-base.yml
service: peer