This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections | |
| sudo apt-get install oracle-java8-installer | |
| sudo apt-get install git maven htop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 505A7412 | |
| echo "deb [arch=amd64] http://s3.amazonaws.com/tokumx-debs $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/tokumx.list | |
| sudo apt-get update | |
| sudo apt-get install tokumx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo add-apt-repository -y ppa:chris-lea/node.js | |
| sudo apt-get update | |
| sudo apt-get install gcc make build-essential nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export GOPATH=$HOME/go | |
| export PATH=$PATH:/usr/local/opt/go/libexec/bin | |
| export PATH=$PATH:$GOPATH/bin | |
| _type=$(uname -s) | |
| # BSD Date | |
| if [ "$_type" = "Darwin" ]; then | |
| export JAVA_HOME=`/usr/libexec/java_home -v 1.8` | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function traverse() { | |
| var prop, addr, value, | |
| doc = arguments['0'], | |
| parent = arguments['1'], | |
| func = arguments['2']; | |
| if (typeof parent === "function") { | |
| func = parent; | |
| parent = undefined; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo -s | |
| nginx=stable # use nginx=development for latest development version | |
| add-apt-repository ppa:nginx/$nginx | |
| apt-get update | |
| apt-get install nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Gettings 0.10.x versions of nodejs | |
| brew tap homebrew/versions | |
| brew search node | |
| brew install node010 | |
| brew link --overwrite node010 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db.CollectionNameHere.aggregate([ | |
| { $group: { _id: "$FieldNameHere"} }, | |
| { $group: { _id: 1, count: { $sum: 1 } } } | |
| ], { allowDiskUse: true }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| base64 --decode --input infilename --output outfilename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var EventBus = (function () { | |
| var topics = {}; | |
| return { | |
| subscribe: function (topic, listener) { | |
| if (!topics[topic]) { | |
| topics[topic] = []; | |
| } | |
| topics[topic].push(listener); | |
| }, |