Skip to content

Instantly share code, notes, and snippets.

View marbarfa's full-sized avatar

Marcos Barreto marbarfa

View GitHub Profile
import java.io.*;
import java.util.*;
class Solution {
public static void main(String[] args) {
System.out.println("Nearby Words: ");
System.out.println(nearbyWords("gi"));
}
@marbarfa
marbarfa / gist:63141e43a03973a95fb7
Last active August 29, 2015 14:17
Download&Install Hadoop+Hbase+Scala+Java
mkdir -p ~/opt
cd ~/opt
echo "### Installing Hadoop 2.4 ###"
wget https://archive.apache.org/dist/hadoop/core/hadoop-2.4.1/hadoop-2.4.1.tar.gz
tar -xvf hadoop-2.4.1.tar.gz
echo "### End installation of Hadoop 2.4.2 ###"
echo "### Installing HBase 0.98.9 ###"
wget http://archive.apache.org/dist/hbase/hbase-0.98.9/hbase-0.98.9-hadoop2-bin.tar.gz
#!/bin/sh
remove_dangling() {
echo "Removing dangling images ..."
docker rmi $(docker images -f dangling=true -q)
}
remove_stopped_containers() {
echo "Removing stopped containers ..."
docker rm $(docker ps -qa)
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358558856 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
#!/bin/bash
#
# Installs and upgrades OS X tools and command-line utils using [Homebrew] (www.brew.sh).
# This will use GNU's available toolset.
#
# # #
# Function to install homebrew [ http://brew.sh ]
# # #
install_brew() {