Skip to content

Instantly share code, notes, and snippets.

@deeptiGarg
deeptiGarg / gist:d5a00c980ba7a2309126b7a23d03db6d
Last active September 17, 2018 21:04
Setting up Compute engine for GCC
Install GCC and other dev tools on Centos-
yum --setopt=group_package_types=mandatory,default,optional group install "Development Tools"
Download zip file -
curl http:// -L -o FileName.zip
FileName.zip - Filename you want to give to the downloaded file.
Centos - yum command is used instead of apt-get to install software packages.
@deeptiGarg
deeptiGarg / GCP + MongoDB Work
Last active April 1, 2019 01:56
Describes the MongoDB installation on GCP and getting started.
Go to GCP MarketPlace.
Search for MongoDb machine image.
Install it based on your disk requirements. ( You can select the number of Arbiters needed)
Run the Compute engines for MongoDB Server and Arbiter(s).
SSH on Server.
Run MongoDB shell by typing 'mongo'.
-------------------------------------Commands-----------------------------------
Get all the databases - db.adminCommand( { listDatabases: 1 } )
Select DB to use - use "DBName"
View all collections in the current db - db.getCollectionInfos() ; Example CollectionName = mydb
Gold standard labels dataset - Open, Curated datasets for ADR studies. https://bionlp.nlm.nih.gov/tac2017adversereactions/