Skip to content

Instantly share code, notes, and snippets.

View mamun67's full-sized avatar

SK MAMUN ARFIN mamun67

  • INDIA (WEST BENGAL)
View GitHub Profile
@mamun67
mamun67 / docker-ce-17.05-ubuntu-16.04-LTS-install.md
Created November 2, 2017 19:01 — forked from spara/docker-ce-17.05-ubuntu-16.04-LTS-install.md
Install Docker CE 17.05 and Compose 1.13.0

Installing Docker CE Edge for Ubuntu Linux

Remove previous versions of Docker and Compose

sudo apt-get purge docker-compose
sudo apt-get purge docker-ce

Install dependencies

@mamun67
mamun67 / HyperLedger-Setup.txt
Created November 5, 2017 14:30
Steps to Setup Hyperledger Fabric V1.0
Pre-requisites for Hyperledger setup in Ubuntu 16.04LTS
Open a terminal window: CTRL+ALT+T.
Type the following command and enter your password:
$ sudo apt install curl
To check, run the following command in your terminal/command line:
$ curl -V
Install Docker CE 17.05 and Compose 1.13.0
Note: Few Commands wont work in lower version of compose
@mamun67
mamun67 / gist:bbf3fd0da55167513e65907de6a3fc9e
Created November 5, 2017 15:02
Steps to Start Hypledger Fabric Network for Tuna-App
Please refer to https://gist.github.com/mamun67/955013074a4f12fa1b8b9076170cec05 for Hyperledger Setup
Now we will download the latest released Docker images for Hyperledger Fabric, and tag them with the latest tag. Execute the command from within the directory into which you will extract the platform-specific binaries:
$ curl -sSL https://goo.gl/Q3YRTi | bash
Note: Check https://hyperledger-fabric.readthedocs.io/en/latest/samples.html#binaries for the latest URL (the blue portion in the above curl command) to pull in binaries.
This command downloads binaries for cryptogen, configtxgen, configxlator, peer AND downloads the Hyperledger Fabric Docker images. These assets are placed in a bin subdirectory of the current working directory.
To confirm and see the list of Docker images you’ve just downloaded, run:
$ docker images
@mamun67
mamun67 / Setup_AND_commands_reactjs
Last active November 28, 2017 18:17
Setup for React Development
To setup React dev environment
->Install Nodejs
->npm install -g live-server //To run files locally for testing
->live-server public --port=8089 //to change port to 8089
->npm install -g [email protected]
->npm init //creates package.json file
->yarn add [email protected] [email protected]
->babel src/app.js --out-file=publis/scripts/app.js --presets=env,react --watch //convert to es*
To start MongoDB
->mongod --dbpath ../newdata //Path of the data folder
//To show available Db
->show dbs
//to create new db and use it
->use dbname //it will create the db if it doesnot exist
//to use a particular db
-> use dbname
//to enter data into mongodb collection
@mamun67
mamun67 / VirtualEnv
Last active January 23, 2018 19:48
Virtual Env Setup Pythom
virtualenv venv --python=<Python version>
#for linux
$source venv/bin/activate
#for windows
./venv/Scripts/activate.bat
#install MS visual C++
http://www.microsoft.com/en-us/download/details.aspx?id=44266
#for windows we need to install the connector
http://dev.mysql.com/downloads/connector/c/6.0.html#downloads
@mamun67
mamun67 / foo.log
Created December 10, 2017 18:01 — forked from ibeex/foo.log
Flask logging example
A warning occurred (42 apples)
An error occurred
@mamun67
mamun67 / Regular_expression
Created December 11, 2017 20:46
Regular Expression Example
Example 1:
/expression/.test('string')
/a/.test("a"); //true
/a/.test("b"); //false
Example 2:
/a/.test("abc"); //true
@mamun67
mamun67 / 1.mongodb-aws-setup-guide.md
Created January 19, 2018 05:49 — forked from calvinh8/1.mongodb-aws-setup-guide.md
MongoDB Setup Guide for AWS EC2 Instances with Auth Enabled