sudo apt-get purge docker-compose
sudo apt-get purge docker-ce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package circularqueue; | |
/** | |
* | |
* @author Avinash | |
*/ | |
public class CircularQueue { | |
private int maxSize; | |
private int[] cq; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A warning occurred (42 apples) | |
An error occurred |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example 1: | |
/expression/.test('string') | |
/a/.test("a"); //true | |
/a/.test("b"); //false | |
Example 2: | |
/a/.test("abc"); //true |
Credits:
- https://eladnava.com/deploy-a-highly-available-mongodb-replica-set-on-aws/
- http://www.serverlab.ca/tutorials/linux/database-servers/how-to-create-mongodb-replication-clusters/
Big thanks to Elad Nava and Shane Rainville for writing the above articles that allow me to conduct this guide. If by all means that I violated original post's copyright, please contact me.
Disclaimer
OlderNewer