Skip to content

Instantly share code, notes, and snippets.

@zouzias
zouzias / a:Oozie Example: Hive Actions
Created January 9, 2016 11:30 — forked from tmusabbir/a:Oozie Example: Hive Actions
Oozie Example: Hive Actions
Oozie Example: Hive Actions
@zouzias
zouzias / README.md
Created December 23, 2015 17:10 — forked from micjamking/README.md
[JavaScript] Deploying Yeoman apps to Heroku | https://medium.com/console-log-yo/launching-apps-with-yeoman-1d0dfa627305

Deploying Yeoman apps to Heroku

Prerequisites

This assumes you already have a Yeoman app and are ready for publishing

Build for Production

Create production directory & assets

@zouzias
zouzias / qlocktwo.txt
Created November 28, 2015 17:21
QlockTwo example of feasible english 10 x 10 layouts
From http://miniaturegiantspacehamster.blogspot.ch/2011/03/building-word-clock-part-1-genetic.html
Version 1
NSEVENFOURC
FELEVENOTWO
TWELVEFIVEV
TEIGHTENONE
TNINETHREEL
SIXHALFIFTY
@zouzias
zouzias / java7macos.txt
Last active November 21, 2015 14:02
How to set JAVA_HOME to Java7 or Java8 on MacOs
1) Download JDK7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html
2) On your ~/.bash_profile do
# For Java 7
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
# For Java 8
export JAVA_HOME=`/usr/libexec/java_home`
@zouzias
zouzias / AliceInAggregatorLand.scala
Created November 11, 2015 17:36 — forked from johnynek/AliceInAggregatorLand.scala
A REPL Example of using Aggregators in scala
/**
* To get started:
* git clone https://github.com/twitter/algebird
* cd algebird
* ./sbt algebird-core/console
*/
/**
* Let's get some data. Here is Alice in Wonderland, line by line
*/
@zouzias
zouzias / csvToJSON.py
Last active September 12, 2016 20:21
Convert CSV to JSON with two nested categories
import csv
import json
csvfile = open('voronoid-graph.csv', 'r')
jsonfile = open('output.json', 'w')
fieldnames = ("gene","subcategory","category")
categories = {}
@zouzias
zouzias / git-aliases.txt
Created October 29, 2015 09:41
Git aliases
# These are my favorite git aliases
alias gs='git status '
alias gl=' git log --graph --oneline --decorate --all '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
@zouzias
zouzias / apache_nutch_with_mongodb.sh
Last active October 18, 2015 16:44
Install MongoDB 3.0, Elasticsearch 1.7 and Apache Nutch 2.0 (Ubuntu 14.04)
#######################
# Install Elasticsearch
#######################
wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb http://packages.elastic.co/elasticsearch/1.7/debian stable main" | sudo tee -a /etc/apt/sources.list.d/elasticsearch-1.7.list
sudo apt-get update && sudo apt-get install -y elasticsearch
sudo update-rc.d elasticsearch defaults 95 10
@zouzias
zouzias / countJavaLOC.sh
Created October 8, 2015 15:10
Java: Count lines of code
Type the following command
`find . -name '*.java' | xargs wc -l`
for java projects.
Source: http://stackoverflow.com/questions/10661636/how-to-count-lines-in-a-netbeans-project
@zouzias
zouzias / aliases.txt
Last active October 2, 2015 18:45
My git aliases
# Add the following to your ~/.bashrc or ~/.profile file
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'