Found from https://gist.github.com/889297
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
yum install -y git gcc gcc-c++ zlib-devel curl curl-devel openssl
wget http://nodejs.org/dist/node-v0.4.9.tar.gz
# FOR CENTOS 6 | |
# Andrew Diller Jan 2012 | |
# Get EPEL Repo installed | |
rpm --httpproxy proxy --httpport 3128 --import https://fedoraproject.org/static/0608B895.txt | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm | |
vi /etc/yum.repos.d/epel.repo |
# install git | |
sudo apt-get install g++ curl libssl-dev apache2-utils | |
sudo apt-get install git-core | |
# download the Node source, compile and install it | |
#git clone git://github.com/joyent/node.git | |
wget http://nodejs.org/dist/latest/node-v0.5.10.tar.gz | |
tar xvfz node-v0.5.10.tar.gz | |
mv node-v0.5.10 node | |
cd node | |
./configure |
cd ~ | |
sudo apt-get install unzip | |
sudo apt-get install python-software-properties -y | |
# before this step make sure /etc/hostname is same as /etc/hosts | |
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | |
sudo apt-get update | |
sudo apt-get install sun-java6-jre sun-java6-plugin -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz -O elasticsearch.tar.gz |
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# Forked from: http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Ubuntu 11.04 | |
# Last tested & updated 10/14/2011 | |
#################################### | |
#sudo apt-get update | |
#sudo apt-get dist-upgrade |
mkdir free_monkey | |
cd free_monkey | |
git init | |
git remote add origin git@YOUR_SERVER_HOSTNAME:free_monkey.git | |
# do some work, git add and commit files | |
# need the allow empty flag | |
git commit -a -m "added files" --allow-empty | |
git push origin master:refs/heads/master |
mkdir free_monkey | |
cd free_monkey | |
git init | |
git remote add origin git@YOUR_SERVER_HOSTNAME:free_monkey.git | |
# do some work, git add and commit files | |
git push origin master:refs/heads/master |
package com.example.opennlp; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Map; | |
import java.util.TreeSet; | |
import javax.servlet.*; | |
import javax.servlet.http.*; |
# Copyright 2011 Hakan Kjellerstrand hakank@bonetmail.com | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
"""Glop example: the Stigler diet.""" | |
from google.apputils import app | |
from ortools.linear_solver import pywraplp | |
def main(_): | |
# Commodity, Unit, 1939 price (cents), Calories, Protein (g), Calcium (g), Iron (mg), Vitamin A (IU), Thiamine (mg), Riboflavin (mg), Niacin (mg), Ascorbic Acid (mg) | |
data = [ | |
['Wheat Flour (Enriched)', '10 lb.', 36, 44.7, 1411, 2, 365, 0, 55.4, 33.3, 441, 0], |