Skip to content

Instantly share code, notes, and snippets.

@mmiliaus
mmiliaus / hadoop-install-guide.md
Last active December 17, 2015 16:19
Hadoop Installation Guide

Mac OSX

Hadoop

  • brew install hadoop
  • Check if Hadoop has been successfully installed: hadoop version
  • Add following three lines to your ~/.bash_profile:
export HADOOP_PREFIX=/usr/local/Cellar/hadoop/1.1.2/
export JAVA_HOME=$(/usr/libexec/java_home)
@mmiliaus
mmiliaus / hadoop-setup.md
Last active December 17, 2015 00:28
Hadoop Setup
  1. Install SSH client and server:

    sudo apt-get install openssh-client sudo apt-get install openssh-server

  2. Adding a dedicated Hadoop system user:

    $ sudo addgroup hadoop $ sudo adduser --ingroup hadoop hduser

Mac OS X Lion

1. Install "Command Line Tools for Xcode"

  1. Go to https://connect.apple.com;
  2. Login with your Apple account credentials;
  3. Search for "command line tools"
  4. Find it in the results, download it and install it;

2. Install Homebrew

GREEN=`tput setf 2`
WHITE=`tput setf 7`
PS1="\u:\w\$(git branch 2>/dev/null | grep -e '\* ' | sed 's/^..\(.*\)/\[$GREEN\]{\1}/') \[$WHITE\]\$ "

Basics

PHP code is surrounded by <?php ?> tags, like so:

<?php

// PHP code
echo "Hello World";

Basics

PHP code is surrounded by <?php ?> tags, like so:

<?php

// PHP code
echo "Hello World";

Goal

Prerequisite

Installation

Ubuntu

Mac OS X

<?php
/**
*
* Generates anchor HTML markup, which can perform GET/POST requests
*
* Example usage in the view
* <code>
* $this->linkTo(
'new',
<?php
/*
* Zend Controller responsible for handling online payments.
* + Talking to PayPal API
* + Talking to PaymentSense API
* + Talking to SalesForce API
* + Auto-registering paying user with our system
* + Notifying about new lead
*
* @author Martynas Miliauskas <[email protected]>