This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// somewhere inside some cool framework | |
val classpathEntries = Option(conf.getStrings(YarnConfiguration.YARN_APPLICATION_CLASSPATH)). | |
getOrElse(getDefaultYarnApplicationClasspath()) | |
// where | |
def getDefaultYarnApplicationClasspath(): Array[String] = { | |
try { | |
val field = classOf[MRJobConfig].getField("DEFAULT_YARN_APPLICATION_CLASSPATH") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# snippet from my ~/.zshrc file. | |
export JAVA7_HOME="$(/usr/libexec/java_home -v 1.7)" | |
function with-jdk7 | |
{ | |
export JAVA_HOME="$JAVA7_HOME" | |
echo "$@" | |
$@ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val r = 0.0 to 1.1 by 0.1 | |
( ( r drop 2 ) drop 2 ) take 2 // doesn't work. | |
val r = BigDecimal(0.0) to 1.1 by 0.1 | |
( ( r drop 2 ) drop 2 ) take 2 // does work. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Your Name | |
email = [email protected] | |
[color] | |
ui = true | |
[core] | |
excludesfile = ~/.gitignore_global | |
editor = /usr/local/bin/mvim -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You 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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import collections | |
import datetime | |
import json | |
import signal | |
import sys | |
from contextlib import closing | |
from optparse import OptionParser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AUTOMAKE="$(which automake-1.12)" ACLOCAL="$(which aclocal-1.12)" ./bootstrap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"activated_slaves": 1, | |
"build_date": "2013-11-07 10:40:03", | |
"build_time": 1383849603, | |
"build_user": "bernardo", | |
"completed_frameworks": [ | |
{ | |
"active": 1, | |
"completed_tasks": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ _ ___ ______ _ _ _____ _ _ _____ | |
| | | |/ _ \ | ___ \ \ | |_ _| \ | | __ \ | |
| | | / /_\ \| |_/ / \| | | | | \| | | \/ | |
| |/\| | _ || /| . ` | | | | . ` | | __ | |
\ /\ / | | || |\ \| |\ |_| |_| |\ | |_\ \ | |
\/ \/\_| |_/\_| \_\_| \_/\___/\_| \_/\____/ | |
IPTABLES DISABLED!!!! ______________ | |
ALL PORTS ARE OPEN. ,===:'., `-._ |