Posts

Showing posts from April, 2014

How to set up existing existing website to git?

If your site is already existing and you want to setup your site on  git. SO please follow the steps as shown below. 1) Go to the main directory where you site root Like: cd var/www/host/yousite cd <localdir>   2) run these command git init git add . git commit -m 'My first commit message on git' git remote add origin <Clone Url> git push -u origin master   Note: Your Clone Url can be like this git@bitbucket.org:yousitedirecoty/sitename.git Or it could be like this to git clone https://github.com/CompanyName/AppName   Now you can check you commit status on your git site. Please comment if this works!

MognoDB Tutorial

Image
MognoDB Tutorial - Chapter 1 MongoDB is an open-source document database, and leading NoSQL database. MongoDB is written in c++. I am going to tell you that how can you learn MongoDB: TAKE A LOOK ON THIS TABLE FOR A SIMPLE BRIEF RDBMS MongoDB Database Database Table Collection Tuple/Row Document Column Field Table Join Embedded Documents Primary Key Primary Key (Default key _id provided by mongodb itself) Database Server and Client Mysqld/Oracle mongod mysql/sqlplus mongo First step:   You need to go in MongoDB folder where you had installed it Like: C:\wamp\bin\mongodb\mongodb-win32-x86_64-2008plus-2.4.10\bin Now you need to start mongodb server to double click on mongod.exe if it is already start if will blink the cmd and close. Now you need to Double click on mongo.exe to cmd interface to run mongoDB command It will show something li

Learn the Linux command line - Chapter 2

cat - type  cat Then type a few words on the keyboard and press the [Return] Or [Enter] key. Finally hold the [Ctrl] key down and press [d] (written as ^D for short) to end the input. Now what happend? If wiill copy your data to the next line cat > test.txt - To add new file and add the content into file Write that command press enter cat > test.txt enter your keyword like: apple, pear, banana press Ctrl+D and now read the file by cat test.txt If file is already created then it overwrite the file content cat >> test.txt - To Append the content into a existing file cat list1.txt list2.txt > biglist.txt -   This command will copy the text from both file and create new file with the name of biglist.txt and paste the content in this file We use the < symbol to redirect the input of a command. The command sort alphabetically or numerically sorts a list. Type % sort Then type in the names of some animals. Press [Return] after each one. dog