Search content:

 

Last search queries List all

Genres

Last topics

Git by Examples
Reset commit

To reset commit to older version and delete all new versions do this:   1. $ git reset --hard 0d60d551 2. $ git push -f
Misc

Git by Examples
.gitignore and how to unt...

To untrack file changes do the following steps:   1. vim .gitignore a) If you want to exclude specific file enter: /set...
Misc

Git by Examples
Basic Settings

Configuration         Setup SSH key First setup user's email on your local Ubuntu machine:
Misc

NodeJS By Examples
NodeJS Installation on Ce...

Installation - NodeJS on Centos 6.5 1. yum list nodejs
JavaScript

NodeJS By Examples
PM2

Start Node app with pm2 : $ pm2 start bin/www -i 0 -n 'crawler' -i 0  the number of instances is equal to number of proc...
JavaScript

NodeJS By Examples
Bluebird promise library

Installation $ sudo npm install -g bluebird   Inclusion - NodeJS var
JavaScript

NodeJS By Examples
Promise libraries for Nod...

There are many promise NPM libraries for nodejs but two of them are the most popular: 1. q 2. bluebird Bluebird is newer and the tw...
JavaScript

NodeJS By Examples
Promises

A Promise is an object that represents the result of an asynchronous function call and it's a valuable tool for managing asynchronous control flow. ...
JavaScript

MongoDB
Basic MongoDB Search Quer...

db.collection(collName)       .find(queryDB)       .sort({cid: -1})
Database

MongoDB
Advanced Serch Examples -...

1. Document {    "_id" : ObjectId("55c23b8b8b70fe4e148fea45"),  &nbsp...
Database

MongoDB
Start Mongo as a service ...

This chapter will explain how to setup mongod service on CentOS 6.5 : # service mongod start | stop | restart   1. If old rc.d script...
Database

MongoDB
mongod.lock

When starting MongoDB server # mongod --config /etc/mongod.conf   a file /var/lib/mongodb/mongod.lock is crea...
Database

MongoDB
MongoDB Authentication

  This chapter describes how to create user with password in MongoDB 2.6.10 and above.   Start / stop Mongo server 1. wi...
Database

AngularJS for dummies
Factory, service and prov...

Thanks to http://tylermcginnis.com/angularjs-factory-vs-service-vs-provider...
JavaScript

AngularJS for dummies
Angular Style Guide

https://github.com/mgechev/angularjs-style-guide#services   &...
JavaScript

Linux Basic Commands
Server resources

1. Type the following command at the shell prompt to find out top 10 largest file/directories: # du -a /var | sort -n -r | head -n 10
Linux Server

Linux Basic Commands
Split Files

SPLITTING FILES Split file into 1Mb per file $ split -b 1m first_100k.csv new     Split file int...
Linux Server

Linux Basic Commands
Cron jobs

Basic commands   SYNTAX crontab [-u user] file crontab [-u user
Linux Server

Linux Basic Commands
Wget Options

GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and ...
Linux Server

Linux Basic Commands
Linux Commands

$ps -aux | grep firefox -ists all firefox processes. $lsb_release -a   -get current Ubuntu version #grep -H -r "1click...
Linux Server

Last 5 tutorials modified