Skip to content

Instantly share code, notes, and snippets.

View abhishekdgeek's full-sized avatar
🎯
Focusing

Abhishek Jain abhishekdgeek

🎯
Focusing
  • Microsoft Corporation
  • India
View GitHub Profile
{
"_id" : ObjectId("5712d20e4accc8cf5debfab9"),
"title" : "",
"gameId" : "f6fa652c-bf4a-4131-a0b8-a3ecee1f383a",
"sportName" : "NFL",
"scheduleType" : "week",
"status" : "closed",
"scheduled" : "2016-08-20T17:00:00+00:00",
"scheduledOn" : ISODate("2016-08-20T20:00:00.000Z"),
"scheduledDate" : ISODate("2016-08-20T00:00:00.000Z"),
https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf
http://rogerdudler.github.io/git-guide/
Fetch and Pull all remote branches.
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@abhishekdgeek
abhishekdgeek / backupMongoDB.sh
Created March 9, 2016 09:15
Simple mongo db dumping shell script. Used BSON for more information and accuracy.
#!/bin/bash
# MongoDB Backup Script
NOW=$(date +"%m-%d-%Y-%H-%M")
NAME="backup.$NOW"
DB="mean-dev"
SERVER="localhost"
PORT="27017"
mongodump --host $SERVER -d $DB --port $PORT --out $NAME
tar -cvf $NAME.tar $NAME/
rm -r $NAME
This file has been truncated, but you can view the full file.
2001 silly mapToRegistry name options
2002 silly mapToRegistry using default registry
2003 silly mapToRegistry registry https://registry.npmjs.org/
2004 silly mapToRegistry uri https://registry.npmjs.org/options
2005 verbose addNameRange registry:https://registry.npmjs.org/options not in flight; fetching
2006 verbose request uri https://registry.npmjs.org/tinycolor
2007 verbose request no auth needed
2008 info attempt registry request try #1 at 7:47:37 PM
2009 verbose etag "7Q55AK0YV957DH6ZT14LNQOJW"
2010 http request GET https://registry.npmjs.org/tinycolor