Flush DNS Cache in Mac OS X 10.10 (Yosemite)

This command will flush the DNS cache in Mac OS X 10.10 (Yosemite) sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed…

Read this article

MongoDB GUI Admin Tools

MongoChef Fantastic Allows export through the GUI Free to non-commercial user Runs on mac, linux, windows Download RoboMongo Free Runs on mac, linux, windows Download…

Read this article

Homebrew

brew doctor Let's you know what should be fixed in your home brew. brew update The following untracked working tree files would be overwritten by merge When running brew update, I occationally get this error. Solution: cd /usr/local git fetch origin git reset --hard origin/master Stack overflow solution…

Read this article

How to get Visual Studio Code running on OSX

Install HomeBrew (if you don't already have it) ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Run the following commands to install the mono and asp.net frameworks: brew tap aspnet/dnx brew update brew install dnvm Edit the ~/.bash_profile vi .bash_profile…

Read this article

Protractor Notes

Protractor Installation Some of these notes were made while I went through the examples of the AngularJS Test-driven Development book, which I highly recommend reading. Install Protractor Globally npm install -g protractor In MacOSX, this should install protractor in: /usr/local/lib/modules/node_modules/protractor Install Selenium Webdriver for…

Read this article

Guide to running Ubuntu on Macbook Pro

Determining your hardward configuration and finding a guide Here are all of of the guide on how to run ubuntu on a macbook pro including how to check your hardward configuration Guide for 8,2 macbook pro hardware configuration I am running hardware version 8,2 which is for a…

Read this article

Node.js Commands

List all available packages npm search To install a package, where foo is the package name npm install foo List all packages from a project directory npm ls To upgrade npm packages npm update Get the path that Node is installed in npm config get prefix…

Read this article

LoDash

Documentation Lo Dash LoDash API Docs LoDash Dev Docs Example of using LoDash on Arrays $scope.foos = [ {"id":0, "name": "Foo1"}, {"id":1, "name": "Foo2"} ]; Remove item from array Using LoDash to remove an item from the array…

Read this article

AngularJS Commonly Used Functions

angular.copy Creates a deap copy of an object or an array angular.copy docs…

Read this article

AngularJS Commonly Used Directives

Commonly Used AngularJS Directives Below are some commonly used directives for AngularJS. ng-app <html ng-app="MyApp"> </html> ng-controller <body ng-controller="MainCtrl"> </body> angular.module('MyApp', [ ]) .controller('MainCtrl', function($scope){ }); ng-click ng-click docs Short sample: <button type="…

Read this article