Skip to content

Instantly share code, notes, and snippets.

View osdio's full-sized avatar
🎯
Focusing

OSdio osdio

🎯
Focusing
View GitHub Profile
@osdio
osdio / Vagrant provision block
Created June 26, 2016 10:35 — forked from tinkerware/Vagrant provision block
Install Latest Java 7 and Java 8 on Ubuntu 14.04 LTS
config.vm.provision "shell", inline: <<-SHELL
apt-get -y -q update
apt-get -y -q upgrade
apt-get -y -q install software-properties-common htop
add-apt-repository ppa:webupd8team/java
apt-get -y -q update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
apt-get -y -q install oracle-java8-installer
apt-get -y -q install oracle-java7-installer
@osdio
osdio / mongo-autostart-osx.md
Last active August 29, 2015 14:27 — forked from subfuzion/mongo-autostart-osx.md
mongo auto start on OS X

Install with Homebrew

brew install mongodb

Set up launchctl to auto start mongod

$ ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents

/usr/local/opt/mongodb/ is a symlink to /usr/local/Cellar/mongodb/x.y.z (e.g., 2.4.9)

@osdio
osdio / installer.py
Last active August 29, 2015 14:08 — forked from emre/installer.py
import os
import sys
import urllib2
import urllib
import json
import time
import re
import getpass
INSTALL_PATH = '/srv/'
@osdio
osdio / test.js
Last active August 29, 2015 14:07
var slice = Array.prototype.slice
function logger(namespace) {
var name=namespace;
return function(){
arr=slice.call(arguments);
arr.unshift(name);
console.log.apply(null,arr);
} ;
}